]> www.infradead.org Git - users/jedix/linux-maple.git/commit
autofs races
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Jun 2016 15:24:46 +0000 (11:24 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Wed, 24 Jan 2018 17:42:08 +0000 (09:42 -0800)
commit4db881f95b85f59cead22a1fe7e11b0003241602
tree165179f00f7755ac536f70d203a4aad34064d8c7
parent6105202d2c19eb2a7a664b922edf40e07e67d277
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>
Orabug: 26032471
(cherry picked from commit ea01a18494b3d7a91b2f1f2a6a5aaef4741bc294)
Signed-off-by: Mingming Cao <mingming.cao@oracle.com>
Reviewed-by: Shirley Ma <shirley.ma@oracle.com>
fs/autofs4/autofs_i.h
fs/autofs4/expire.c
fs/autofs4/root.c