kernfs: dont call d_splice_alias() under kernfs node lock
authorIan Kent <raven@themaw.net>
Fri, 16 Jul 2021 09:28:40 +0000 (17:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 07:29:15 +0000 (09:29 +0200)
commitdf6192f47d2311cf40cd4321cc59863a5853b665
tree7efb6059f0a13bb6f538ee8209338ebf77fed018
parent47b5c64d0ab5e7136db2b78c6ec710e0d8a5a36b
kernfs: dont call d_splice_alias() under kernfs node lock

The call to d_splice_alias() in kernfs_iop_lookup() doesn't depend on
any kernfs node so there's no reason to hold the kernfs node lock when
calling it.

Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Link: https://lore.kernel.org/r/162642772000.63632.10672683419693513226.stgit@web.messagingengine.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/dir.c