Re: 2.6.6-rc1-mm1

From: raven
Date: Tue Apr 20 2004 - 09:24:34 EST



Looking at the autofs4_may_umount I think I take the vfsmount_lock to
late.

--- linux-2.6.6-rc1-mm1.orig/fs/autofs4/expire.c 2004-04-20 22:08:39.000000000 +0800
+++ linux-2.6.6-rc1-mm1/fs/autofs4/expire.c 2004-04-20 22:20:06.000000000 +0800
@@ -53,10 +53,9 @@
int actual_refs;
int minimum_refs;

+ spin_lock(&vfsmount_lock);
actual_refs = atomic_read(&mnt->mnt_count);
minimum_refs = 2;
-
- spin_lock(&vfsmount_lock);
repeat:
next = this_parent->mnt_mounts.next;
resume:



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/