From 659954b65e92d874eb890a44f312d86797282983 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 13 Jun 2005 00:48:58 +0000 Subject: - We should never unlock a buf before we've cleared B_REMFREE. I believe this is happening at the moment and sometimes causing panics later on the package cluster when we bremfree() a buf whose delayed bremfree() did not previously happen. Sponsored by: Isilon Systems, Inc. --- sys/sys/buf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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); } -- cgit v1.1