Commit 1ec9dfba authored by Ian Kent's avatar Ian Kent Committed by Suren Baghdasaryan
Browse files

UPSTREAM: kernfs: switch kernfs to use an rwsem



The kernfs global lock restricts the ability to perform kernfs node
lookup operations in parallel during path walks.

Change the kernfs mutex to an rwsem so that, when opportunity arises,
node searches can be done in parallel with path walk lookups.

Reviewed-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
Signed-off-by: default avatarIan Kent <raven@themaw.net>
Link: https://lore.kernel.org/r/162642770946.63632.2218304587223241374.stgit@web.messagingengine.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit 7ba0273b)

Bug: 320903885
Bug: 219424218
Bug: 206126556
Change-Id: I88ff2dfeef30a0af6a0b8c708f0f505b1a347637
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent 5a49c908
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment