1
autofs-5.0.3 - fix expire race
3
From: Ian Kent <raven@themaw.net>
5
For multi-mounts, if a mount request comes in and does not complete
6
before a concurrent expire autofs will not recognize that the tree
7
has become busy which can lead to a partial expire leaving the
8
multi-mount non-functional.
12
lib/mounts.c | 5 ++++-
13
2 files changed, 5 insertions(+), 1 deletions(-)
16
diff --git a/CHANGELOG b/CHANGELOG
17
index e55b873..b9d8299 100644
21
- auto adjust ldap page size.
22
- fix prune cache valid check.
23
- fix mountd vers retry.
26
03/09/2009 autofs-5.0.5
27
-----------------------
28
diff --git a/lib/mounts.c b/lib/mounts.c
29
index 4c44982..f26579e 100644
32
@@ -1525,8 +1525,11 @@ int umount_multi_triggers(struct autofs_point *ap, struct mapent *me, char *root
33
oe_base = oe->key + strlen(root);
34
left += umount_multi_triggers(ap, oe, root, oe_base);
36
- if (oe->ioctlfd != -1)
37
+ if (oe->ioctlfd != -1 ||
38
+ is_mounted(_PROC_MOUNTS, oe->key, MNTS_REAL)) {