From: Miklos Szeredi Date: Tue, 1 Oct 2013 14:41:22 +0000 (+0200) Subject: fuse: don't check_submounts_and_drop() in RCU walk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c70b8eeda596069258772afabf2ab0b1aa017f0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: stable@vger.kernel.org --- diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 62b43b577bfc..9b16806f11da 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -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; }