Re: [PATCH v7 1/4] kernfs: make ->attr.open RCU protected.

From: Tejun Heo
Date: Wed Jun 15 2022 - 02:13:08 EST


On Wed, Jun 15, 2022 at 12:10:56PM +1000, Imran Khan wrote:
> After removal of kernfs_open_node->refcnt in the previous patch,
> kernfs_open_node_lock can be removed as well by making ->attr.open
> RCU protected. kernfs_put_open_node can delegate freeing to ->attr.open
> to RCU and other readers of ->attr.open can do so under rcu_read_(un)lock.
>
> Suggested by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Imran Khan <imran.f.khan@xxxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun