mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
fuse: don't check_submounts_and_drop() in RCU walk
If revalidate finds an invalid dentry in RCU walk mode, let the VFS deal with it instead of calling check_submounts_and_drop() which is not prepared for being called from RCU walk. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: stable@vger.kernel.org
This commit is contained in:
parent
0ab08f576b
commit
3c70b8eeda
@ -259,7 +259,8 @@ out:
|
||||
|
||||
invalid:
|
||||
ret = 0;
|
||||
if (check_submounts_and_drop(entry) != 0)
|
||||
|
||||
if (!(flags & LOOKUP_RCU) && check_submounts_and_drop(entry) != 0)
|
||||
ret = 1;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user