]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
path_has_submounts(): use guard(mount_locked_reader)
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 2 Sep 2025 23:55:41 +0000 (19:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:26:44 +0000 (21:26 -0400)
commit1a22542b5ffe2f91859ed7c7e610dc7b588a6713
tree70017fd8a399a51609b98b04d09aecaa004d2290
parent19ac81735c9bcb0c93895e3674792b923ac16956
path_has_submounts(): use guard(mount_locked_reader)

Needed there since the callback passed to d_walk() (path_check_mount())
is using __path_is_mountpoint(), which uses __lookup_mnt().

Has to be taken in the caller - d_walk() might take rename_lock spinlock
component and that nests inside mount_lock.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c