]> 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)
commitb97cb618d5232bb997175ecc779de1600f964cfb
tree0a631ad4a9b355104f8b4951c462e454d4ddae3a
parent3471e872cfc3318ba9bb65a9f1388db71975363f
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: 537b95dc0bd5 "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