Source-Changes-HG archive

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

[src/trunk]: src/sys/kern bremfree needs bqueue_slock held. assert it.



details:   https://anonhg.NetBSD.org/src/rev/96802491fa97
branches:  trunk
changeset: 551502:96802491fa97
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Sep 07 11:57:43 2003 +0000

description:
bremfree needs bqueue_slock held.  assert it.

diffstat:

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

diffs (27 lines):

diff -r 33189d84360a -r 96802491fa97 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Sun Sep 07 11:55:43 2003 +0000
+++ b/sys/kern/vfs_bio.c        Sun Sep 07 11:57:43 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.93 2003/08/07 16:32:01 agc Exp $ */
+/*     $NetBSD: vfs_bio.c,v 1.94 2003/09/07 11:57:43 yamt Exp $        */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -80,7 +80,7 @@
 #include "opt_softdep.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.93 2003/08/07 16:32:01 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.94 2003/09/07 11:57:43 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -162,6 +162,8 @@
 {
        struct bqueues *dp = NULL;
 
+       LOCK_ASSERT(simple_lock_held(&bqueue_slock));
+
        /*
         * We only calculate the head of the freelist when removing
         * the last element of the list as that is the only time that



Home | Main Index | Thread Index | Old Index