From f5abf7cc119bda2fe0e5cdc84fa029e2c2d4fa05 Mon Sep 17 00:00:00 2001 From: bouyer Date: Thu, 31 Mar 2005 13:35:02 +0000 Subject: [PATCH] Use DEV_STRATEGY() instead of VOP_STRATEGY(). YAMAMOTO Takashi says it's not safe to use VOP_STRATEGY() from interrupt context. --- sys/arch/xen/xen/xbdback.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/xen/xen/xbdback.c b/sys/arch/xen/xen/xbdback.c index bf65f5a0ecb0..d0596f740b9a 100644 --- a/sys/arch/xen/xen/xbdback.c +++ b/sys/arch/xen/xen/xbdback.c @@ -1,4 +1,4 @@ -/* $NetBSD: xbdback.c,v 1.5 2005/03/26 21:22:45 bouyer Exp $ */ +/* $NetBSD: xbdback.c,v 1.6 2005/03/31 13:35:02 bouyer Exp $ */ /* * Copyright (c) 2005 Manuel Bouyer. @@ -599,6 +599,7 @@ xbdback_io(struct xbdback_instance *xbdi, blkif_request_t *req) xbd_req->rq_buf.b_iodone = xbdback_iodone; xbd_req->rq_buf.b_proc = NULL; xbd_req->rq_buf.b_vp = vbd->vp; + xbd_req->rq_buf.b_dev = vbd->dev; xbd_req->rq_buf.b_blkno = req->sector_number; xbd_req->rq_buf.b_bcount = (daddr_t)req_size; xbd_req->rq_buf.b_data = (void *)start_offset; @@ -669,7 +670,7 @@ xbdback_do_io(struct xbdback_request *xbd_req) xbd_req->rq_buf.b_vp->v_numoutput++; XENPRINTF(("xbdback_io domain %d: start request\n", xbd_req->rq_xbdi->domid)); - VOP_STRATEGY(xbd_req->rq_buf.b_vp, &xbd_req->rq_buf); + DEV_STRATEGY(&xbd_req->rq_buf); } static void