From 8df0f88de48460ecf5e950d5fcfd7b4cb5d9b72a Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Wed, 22 May 2002 14:29:21 +0000 Subject: splassert(IPL_BIO) in the b_iodone handlers. --- sys/uvm/uvm_pager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/uvm/uvm_pager.c b/sys/uvm/uvm_pager.c index 46972ccf57d..0a5ad1f725c 100644 --- a/sys/uvm/uvm_pager.c +++ b/sys/uvm/uvm_pager.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pager.c,v 1.30 2002/01/02 22:23:25 miod Exp $ */ +/* $OpenBSD: uvm_pager.c,v 1.31 2002/05/22 14:29:20 art Exp $ */ /* $NetBSD: uvm_pager.c,v 1.36 2000/11/27 18:26:41 chs Exp $ */ /* @@ -745,6 +745,8 @@ uvm_aio_biodone1(bp) { struct buf *mbp = bp->b_private; + splassert(IPL_BIO); + KASSERT(mbp != bp); if (bp->b_flags & B_ERROR) { mbp->b_flags |= B_ERROR; @@ -769,6 +771,8 @@ void uvm_aio_biodone(bp) struct buf *bp; { + splassert(IPL_BIO); + /* reset b_iodone for when this is a single-buf i/o. */ bp->b_iodone = uvm_aio_aiodone; -- cgit v1.2.3