On Thu, Mar 02, 2023 at 03:32:01PM +1100, Imran Khan wrote: > +++ b/fs/kernfs/kernfs-internal.h > @@ -47,6 +47,7 @@ struct kernfs_root { > > wait_queue_head_t deactivate_waitq; > struct rw_semaphore kernfs_rwsem; > + struct rw_semaphore kernfs_iattr_rwsem; > }; > > /* +1 to avoid triggering overflow warning when negating it */ Can you explain why we want one iattr rwsem per kernfs_root instead of one rwsem per kernfs_node?