svn commit: r235241 - head/sys/fs/ext2fs

Sergey Kandaurov pluknet at FreeBSD.org
Thu May 10 20:28:34 UTC 2012


Author: pluknet
Date: Thu May 10 20:28:33 2012
New Revision: 235241
URL: http://svn.freebsd.org/changeset/base/235241

Log:
  Fix mount interlock oversights from the previous change in r234386.
  
  Reported by:	dougb
  Submitted by:	Mateusz Guzik <mjguzik at gmail com>
  Reviewed by:	Kirk McKusick
  Tested by:	pho

Modified:
  head/sys/fs/ext2fs/ext2_vfsops.c

Modified: head/sys/fs/ext2fs/ext2_vfsops.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_vfsops.c	Thu May 10 20:13:24 2012	(r235240)
+++ head/sys/fs/ext2fs/ext2_vfsops.c	Thu May 10 20:28:33 2012	(r235241)
@@ -830,7 +830,6 @@ ext2_sync(struct mount *mp, int waitfor)
 	/*
 	 * Write back each (modified) inode.
 	 */
-	MNT_ILOCK(mp);
 loop:
 	MNT_VNODE_FOREACH_ALL(vp, mp, mvp) {
 		if (vp->v_type == VNON) {
@@ -847,7 +846,6 @@ loop:
 		}
 		error = vget(vp, LK_EXCLUSIVE | LK_NOWAIT | LK_INTERLOCK, td);
 		if (error) {
-			MNT_ILOCK(mp);
 			if (error == ENOENT) {
 				MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp);
 				goto loop;


More information about the svn-src-head mailing list