Re: [PATCH 3/3] kernfs: change kernfs_rename_lock into a read-write lock.

From: Matthew Wilcox
Date: Thu Mar 02 2023 - 13:50:00 EST


On Thu, Mar 02, 2023 at 03:32:03PM +1100, Imran Khan wrote:
> kernfs_rename_lock protects a node's ->parent and thus kernfs topology.
> Thus it can be used in cases that rely on a stable kernfs topology.
> Change it to a read-write lock for better scalability.
>
> Suggested by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Imran Khan <imran.f.khan@xxxxxxxxxx>

Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>