Module Name:    src
Committed By:   snj
Date:           Sat Nov 21 20:07:49 UTC 2009

Modified Files:
        src/sys/kern [netbsd-5]: vfs_subr.c

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #1129):
        sys/kern/vfs_subr.c: revision 1.387
Fix getcleanvnode() in previous: in the if (vp->v_usecount != 0)
case we didn't bump the refcount, so don't decrease it through vrelel().
call mutex_exit() on v_interlock directly instead.


To generate a diff of this commit:
cvs rdiff -u -r1.357.4.6 -r1.357.4.7 src/sys/kern/vfs_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_subr.c
diff -u src/sys/kern/vfs_subr.c:1.357.4.6 src/sys/kern/vfs_subr.c:1.357.4.7
--- src/sys/kern/vfs_subr.c:1.357.4.6	Sun Nov  8 22:49:05 2009
+++ src/sys/kern/vfs_subr.c	Sat Nov 21 20:07:49 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_subr.c,v 1.357.4.6 2009/11/08 22:49:05 snj Exp $	*/
+/*	$NetBSD: vfs_subr.c,v 1.357.4.7 2009/11/21 20:07:49 snj Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.357.4.6 2009/11/08 22:49:05 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.357.4.7 2009/11/21 20:07:49 snj Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -376,7 +376,7 @@
 		 * Don't return to freelist - the holder of the last
 		 * reference will destroy it.
 		 */
-		vrelel(vp, 0); /* releases vp->v_interlock */
+		mutex_exit(&vp->v_interlock);
 		mutex_enter(&vnode_free_list_lock);
 		goto retry;
 	}

Reply via email to