Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2009 15:36:44 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 166735 for review
Message-ID:  <200907291536.n6TFaiXf083546@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=166735

Change 166735 by jhb@jhb_jhbbsd on 2009/07/29 15:35:51

	Another LOR between filedesc and vnode locks during mountroot.

Affected files ...

.. //depot/projects/smpng/sys/kern/vfs_mount.c#98 edit

Differences ...

==== //depot/projects/smpng/sys/kern/vfs_mount.c#98 (text+ko) ====

@@ -1481,6 +1481,8 @@
 	if (VFS_ROOT(TAILQ_FIRST(&mountlist), LK_EXCLUSIVE, &rootvnode))
 		panic("Cannot find root vnode");
 
+	VOP_UNLOCK(rootvnode, 0);
+
 	p = curthread->td_proc;
 	FILEDESC_XLOCK(p->p_fd);
 
@@ -1496,8 +1498,6 @@
 
 	FILEDESC_XUNLOCK(p->p_fd);
 
-	VOP_UNLOCK(rootvnode, 0);
-
 	EVENTHANDLER_INVOKE(mountroot);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907291536.n6TFaiXf083546>