Source-Changes-HG archive

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

[src/trunk]: src/sys/kern buffer with B_CALL shouldn't be brelse'ed. assert it.



details:   https://anonhg.NetBSD.org/src/rev/41dd090ae725
branches:  trunk
changeset: 551504:41dd090ae725
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Sep 07 11:59:40 2003 +0000

description:
buffer with B_CALL shouldn't be brelse'ed.  assert it.

diffstat:

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

diffs (26 lines):

diff -r 925f190193ef -r 41dd090ae725 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Sun Sep 07 11:59:39 2003 +0000
+++ b/sys/kern/vfs_bio.c        Sun Sep 07 11:59:40 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.94 2003/09/07 11:57:43 yamt Exp $        */
+/*     $NetBSD: vfs_bio.c,v 1.95 2003/09/07 11:59:40 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.94 2003/09/07 11:57:43 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.95 2003/09/07 11:59:40 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -536,6 +536,7 @@
        int s;
 
        KASSERT(ISSET(bp->b_flags, B_BUSY));
+       KASSERT(!ISSET(bp->b_flags, B_CALL));
 
        /* Block disk interrupts. */
        s = splbio();



Home | Main Index | Thread Index | Old Index