[Midnightbsd-cvs] src [9321] trunk/sys/kern/vfs_subr.c: Allow the vnode to be unlocked for the weird case of

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Mar 2 19:19:11 EST 2017


Revision: 9321
          http://svnweb.midnightbsd.org/src/?rev=9321
Author:   laffer1
Date:     2017-03-02 19:19:11 -0500 (Thu, 02 Mar 2017)
Log Message:
-----------
Allow the vnode to be unlocked for the weird case of
LK_EXCLOTHER. LK_EXCLOTHER is only used to acquire a
usecount on a vnode during NFSv4 recovery from an
expired lease.

Modified Paths:
--------------
    trunk/sys/kern/vfs_subr.c

Modified: trunk/sys/kern/vfs_subr.c
===================================================================
--- trunk/sys/kern/vfs_subr.c	2017-03-03 00:18:36 UTC (rev 9320)
+++ trunk/sys/kern/vfs_subr.c	2017-03-03 00:19:11 UTC (rev 9321)
@@ -4182,7 +4182,7 @@
 	struct vop_lock1_args *a = ap;
 
 	ASSERT_VI_UNLOCKED(a->a_vp, "VOP_LOCK");
-	if (rc == 0)
+	if (rc == 0 && (a->a_flags & LK_EXCLOTHER) == 0)
 		ASSERT_VOP_LOCKED(a->a_vp, "VOP_LOCK");
 #endif
 }



More information about the Midnightbsd-cvs mailing list