From fd4630d0e5b7fc5b375c477f7d971a0d82fc7821 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Sat, 19 Jun 2004 14:29:21 +0000 Subject: save curproc for further reference, otherwise we may end up in lockmgr() with no process context. ok miod@. closes pr 3214. --- sys/dev/vnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index 03739dad91a..91b0023db0d 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.46 2004/05/22 18:26:52 otto Exp $ */ +/* $OpenBSD: vnd.c,v 1.47 2004/06/19 14:29:20 pedro Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -470,7 +470,7 @@ vndstrategy(bp) auio.uio_iovcnt = 1; auio.uio_offset = dbtob((off_t)(bp->b_blkno + off)); auio.uio_segflg = UIO_SYSSPACE; - auio.uio_procp = NULL; + auio.uio_procp = p; vn_lock(vnd->sc_vp, LK_EXCLUSIVE | LK_RETRY, p); vnd->sc_flags |= VNF_BUSY; -- cgit v1.2.3