summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/buf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 9f8fc2f..a6ba1c0 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -309,6 +309,8 @@ BUF_UNLOCK(struct buf *bp)
int s;
s = splbio();
+ KASSERT((bp->b_flags & B_REMFREE) == 0,
+ ("BUF_UNLOCK %p while B_REMFREE is still set.", bp));
lockmgr(&(bp)->b_lock, LK_RELEASE, NULL, curthread);
splx(s);
}
OpenPOWER on IntegriCloud