Source-Changes-HG archive

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

[src/trunk]: src/sys/kern checkalias: pass LK_NOWAIT to vget() while holding ...



details:   https://anonhg.NetBSD.org/src/rev/fe665527e45e
branches:  trunk
changeset: 565641:fe665527e45e
user:      pk <pk%NetBSD.org@localhost>
date:      Fri Apr 16 09:59:32 2004 +0000

description:
checkalias: pass LK_NOWAIT to vget() while holding the spechash spinlock.

diffstat:

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

diffs (27 lines):

diff -r 87871b9b5ca1 -r fe665527e45e sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Fri Apr 16 08:52:41 2004 +0000
+++ b/sys/kern/vfs_subr.c       Fri Apr 16 09:59:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_subr.c,v 1.218 2004/03/24 15:34:53 atatat Exp $    */
+/*     $NetBSD: vfs_subr.c,v 1.219 2004/04/16 09:59:32 pk 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 2004/03/24 15:34:53 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.219 2004/04/16 09:59:32 pk Exp $");
 
 #include "opt_inet.h"
 #include "opt_ddb.h"
@@ -1145,7 +1145,7 @@
                        vgonel(vp, p);
                        goto loop;
                }
-               if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK)) {
+               if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK | LK_NOWAIT)) {
                        simple_unlock(&spechash_slock);
                        goto loop;
                }



Home | Main Index | Thread Index | Old Index