Commit ce9b499c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Revert "kernfs: remove unnecessary NULL check in __kernfs_remove()"

This reverts commit 88533f99.

Tejun writes:
        I'm sorry but can you please revert the whole series?
        get_active() waiting while a node is deactivated has potential
        to lead to deadlock and that deactivate/reactivate interface is
        something fundamentally flawed and that cgroup will have to work
        with the remove_self() like everybody else.  IOW, I think the
        first posting was correct.

Cc: Tejun Heo <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 88533f99
......@@ -920,6 +920,9 @@ static void __kernfs_remove(struct kernfs_node *kn)
if (!kn)
pr_debug("kernfs %s: removing\n", kn->name);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment