Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/kern Pull up revision 1.227 (requested by yamt in t...



details:   https://anonhg.NetBSD.org/src/rev/d703e41a6aea
branches:  netbsd-2-0
changeset: 561487:d703e41a6aea
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 21 10:18:46 2004 +0000

description:
Pull up revision 1.227 (requested by yamt in ticket #516):
getcleanvnode: add a comment on a VLAYER hack.

diffstat:

 sys/kern/vfs_subr.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 9016672d9b1e -r d703e41a6aea sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Mon Jun 21 10:15:57 2004 +0000
+++ b/sys/kern/vfs_subr.c       Mon Jun 21 10:18:46 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_subr.c,v 1.218.2.2 2004/05/29 09:04:29 tron Exp $  */
+/*     $NetBSD: vfs_subr.c,v 1.218.2.3 2004/06/21 10:18:46 tron Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.218.2.2 2004/05/29 09:04:29 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.218.2.3 2004/06/21 10:18:46 tron Exp $");
 
 #include "opt_inet.h"
 #include "opt_ddb.h"
@@ -246,6 +246,10 @@
        for (; vp != NULL; vp = TAILQ_NEXT(vp, v_freelist)) {
                if (!simple_lock_try(&vp->v_interlock))
                        continue;
+               /*
+                * as our lwp might hold the underlying vnode locked,
+                * don't try to reclaim the VLAYER vnode if it's locked.
+                */
                if ((vp->v_flag & VLAYER) == 0) {
                        if (vn_start_write(vp, &mp, V_NOWAIT) == 0)
                                break;



Home | Main Index | Thread Index | Old Index