Ian Kent 97e7449a7a autofs4: fix indirect mount pending expire race
The selection of a dentry for expiration and the setting of the
AUTOFS_INF_EXPIRING flag isn't done atomically which can lead to lookups
walking into an expiring mount.

What happens is that an expire is initiated by the daemon and a dentry is
selected for expire but, since there is no lock held between the selection
and setting of the expiring flag, a process may find the flag clear and
continue walking into the mount tree at the same time the daemon attempts
the expire it.

Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-24 10:47:32 -07:00
..
2008-07-03 09:59:03 -05:00
2008-04-29 08:06:00 -07:00
2008-04-30 08:29:52 -07:00
2008-05-21 16:55:58 -07:00
2008-06-10 15:12:58 -05:00
2008-07-02 15:06:27 -06:00
2008-07-15 18:34:58 -04:00
2008-05-24 09:56:08 -07:00
2008-07-24 10:47:17 -07:00
2008-07-04 09:52:14 +02:00
2008-07-02 15:06:27 -06:00
2008-04-30 08:29:52 -07:00
2008-07-15 17:35:24 +03:00
2008-06-06 11:29:13 -07:00
2008-06-06 11:29:13 -07:00
2008-07-24 10:47:27 -07:00
2008-05-01 13:08:16 -04:00
2008-07-24 10:47:28 -07:00
2008-05-01 13:08:16 -04:00
2008-07-14 19:10:52 +03:00
2008-05-06 13:13:37 -07:00
2008-04-29 08:06:00 -07:00
2008-06-06 11:29:08 -07:00
2008-07-24 10:47:19 -07:00
2008-07-24 10:47:29 -07:00
2008-04-30 08:29:51 -07:00
2008-07-02 15:06:27 -06:00