]> git.baikalelectronics.ru Git - kernel.git/commit
autofs races
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Jun 2016 15:24:46 +0000 (11:24 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Jun 2016 15:24:46 +0000 (11:24 -0400)
commit31bf91131dcc5d2d0d39f581a7ae65437f7ce323
tree58b50373b64652941796b5b7e03416dd632f4ef8
parent72ba622ffbab9b989445eb87c302fb5ccc4d50ee
autofs races

* make autofs4_expire_indirect() skip the dentries being in process of
expiry
* do *not* mess with list_move(); making sure that dentry with
AUTOFS_INF_EXPIRING are not picked for expiry is enough.
* do not remove NO_RCU when we set EXPIRING, don't bother with smp_mb()
there.  Clear it at the same time we clear EXPIRING.  Makes a bunch of
tests simpler.
* rename NO_RCU to WANT_EXPIRE, which is what it really is.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs4/autofs_i.h
fs/autofs4/expire.c
fs/autofs4/root.c