Revert "kernfs: remove KERNFS_REMOVED"
This reverts commit ae34372eb8
.
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 <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -40,13 +40,9 @@ struct kernfs_node *kernfs_create_link(struct kernfs_node *parent,
|
||||
kn->symlink.target_kn = target;
|
||||
kernfs_get(target); /* ref owned by symlink */
|
||||
|
||||
error = -ENOENT;
|
||||
if (kernfs_get_active(parent)) {
|
||||
kernfs_addrm_start(&acxt);
|
||||
error = kernfs_add_one(&acxt, kn, parent);
|
||||
kernfs_addrm_finish(&acxt);
|
||||
kernfs_put_active(parent);
|
||||
}
|
||||
kernfs_addrm_start(&acxt);
|
||||
error = kernfs_add_one(&acxt, kn, parent);
|
||||
kernfs_addrm_finish(&acxt);
|
||||
|
||||
if (!error)
|
||||
return kn;
|
||||
|
Reference in New Issue
Block a user