Use DEV_STRATEGY() instead of VOP_STRATEGY(). YAMAMOTO Takashi says it's not
safe to use VOP_STRATEGY() from interrupt context.
This commit is contained in:
parent
97b59ebcdc
commit
f5abf7cc11
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user