[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [LINUX] A better way to stop blkdev request handling in blkfront
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 88d867661599a0aa05ec81d75ac6954146d269a9 # Parent 3d85c1136d6366ed9836ff93ca0df4c88a0c2302 [LINUX] A better way to stop blkdev request handling in blkfront driver. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 3d85c1136d63 -r 88d867661599 linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Tue Jun 13 15:19:50 2006 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Tue Jun 13 15:33:10 2006 +0100 @@ -596,8 +596,7 @@ void do_blkif_request(request_queue_t *r continue; } - if (unlikely(info->connected != BLKIF_STATE_CONNECTED) || - RING_FULL(&info->ring)) + if (RING_FULL(&info->ring)) goto wait; DPRINTK("do_blk_req %p: cmd %p, sec %lx, " @@ -697,6 +696,7 @@ static void blkif_free(struct blkfront_i spin_lock_irq(&blkif_io_lock); info->connected = suspend ? BLKIF_STATE_SUSPENDED : BLKIF_STATE_DISCONNECTED; + blk_stop_queue(info->rq); /* no more blkif_request() */ spin_unlock_irq(&blkif_io_lock); /* Free resources associated with old device channel. */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |