Module Name: src
Committed By: bouyer
Date: Tue Nov 17 22:20:14 UTC 2009
Modified Files:
src/sys/kern: vfs_subr.c
Log Message:
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.386 -r1.387 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.386 src/sys/kern/vfs_subr.c:1.387
--- src/sys/kern/vfs_subr.c:1.386 Thu Nov 5 08:18:02 2009
+++ src/sys/kern/vfs_subr.c Tue Nov 17 22:20:14 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.386 2009/11/05 08:18:02 bouyer Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.387 2009/11/17 22:20:14 bouyer 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.386 2009/11/05 08:18:02 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.387 2009/11/17 22:20:14 bouyer Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -377,7 +377,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;
}