Ian Kent cc4062
autofs-5.0.5 - dont check null cache on expire
Ian Kent cc4062
Ian Kent cc4062
From: Ian Kent <raven@themaw.net>
Ian Kent cc4062
Ian Kent cc4062
When expiring an entry there is no need to check the null map
Ian Kent cc4062
entry cache. If we have a mount then it must have been done at
Ian Kent cc4062
some point when the entry was not a nulled so it still needs
Ian Kent cc4062
to be expired. Remove this check.
Ian Kent cc4062
---
Ian Kent cc4062
Ian Kent cc4062
 CHANGELOG          |    1 +
Ian Kent cc4062
 daemon/automount.c |    9 ---------
Ian Kent cc4062
 2 files changed, 1 insertion(+), 9 deletions(-)
Ian Kent cc4062
Ian Kent cc4062
Ian Kent cc4062
--- autofs-5.0.5.orig/CHANGELOG
Ian Kent cc4062
+++ autofs-5.0.5/CHANGELOG
Ian Kent cc4062
@@ -36,6 +36,7 @@
Ian Kent cc4062
 - fix remount locking.
Ian Kent cc4062
 - fix wildcard map entry match.
Ian Kent cc4062
 - fix parse_sun() module init.
Ian Kent cc4062
+- dont check null cache on expire.
Ian Kent cc4062
 
Ian Kent cc4062
 03/09/2009 autofs-5.0.5
Ian Kent cc4062
 -----------------------
Ian Kent cc4062
--- autofs-5.0.5.orig/daemon/automount.c
Ian Kent cc4062
+++ autofs-5.0.5/daemon/automount.c
Ian Kent cc4062
@@ -526,20 +526,11 @@ static int umount_subtree_mounts(struct 
Ian Kent cc4062
    it also tries to umount path itself */
Ian Kent cc4062
 int umount_multi(struct autofs_point *ap, const char *path, int incl)
Ian Kent cc4062
 {
Ian Kent cc4062
-	struct mapent_cache *nc;
Ian Kent cc4062
 	int is_autofs_fs;
Ian Kent cc4062
 	int left;
Ian Kent cc4062
 
Ian Kent cc4062
 	debug(ap->logopt, "path %s incl %d", path, incl);
Ian Kent cc4062
 
Ian Kent cc4062
-	nc = ap->entry->master->nc;
Ian Kent cc4062
-	cache_readlock(nc);
Ian Kent cc4062
-	if (cache_lookup_distinct(nc, path)) {
Ian Kent cc4062
-		cache_unlock(nc);
Ian Kent cc4062
-		return 0;
Ian Kent cc4062
-	}
Ian Kent cc4062
-	cache_unlock(nc);
Ian Kent cc4062
-
Ian Kent cc4062
 	is_autofs_fs = 0;
Ian Kent cc4062
 	if (master_find_submount(ap, path))
Ian Kent cc4062
 		is_autofs_fs = 1;