]> git.baikalelectronics.ru Git - kernel.git/commit
fix autofs regression caused by follow_managed() changes
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Jan 2020 03:09:57 +0000 (22:09 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Jan 2020 06:36:46 +0000 (01:36 -0500)
commit4302ed62eebff352ddeb52f140bc4b8dc51783ab
tree0a631ad4a9b355104f8b4951c462e454d4ddae3a
parentc281ecc69194477c5bf74358c5c0d9bee3b9b088
fix autofs regression caused by follow_managed() changes

we need to reload ->d_flags after the call of ->d_manage() - the thing
might've been called with dentry still negative and have the damn thing
turned positive while we'd waited.

Fixes: 4dc54c5c43c7 "fs/namei.c: pull positivity check into follow_managed()"
Reported-by: Ian Kent <raven@themaw.net>
Tested-by: Ian Kent <raven@themaw.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c