From 2eab8b3609fc71ea44ba0c8f7f350400434f4a10 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 17 Sep 1999 05:03:27 +0000 Subject: [PATCH] Add required BUF_KERNPROC to flushchainbuf() to disassociate the current process from the exclusive lock prior to initiating I/O. This fixes a panic related to swap-backed VN disks Reviewed by: Alan Cox , David Greenman --- sys/vm/vm_pager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 70452ed04ebd..a9e1c7e93283 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -566,6 +566,7 @@ flushchainbuf(struct buf *nbp) nbp->b_bufsize = nbp->b_bcount; if ((nbp->b_flags & B_READ) == 0) nbp->b_dirtyend = nbp->b_bcount; + BUF_KERNPROC(nbp); VOP_STRATEGY(nbp->b_vp, nbp); } else { biodone(nbp);