Messages in this thread Patch in this message |  | | | Date | Tue, 12 Apr 2005 22:50:41 +1000 | | From | Nick Piggin <> | | Subject | [patch 6/9] blk: unplug later |
| |
6/9
-- SUSE Labs, Novell Inc. get_request_wait needn't unplug the device immediately.
Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Index: linux-2.6/drivers/block/ll_rw_blk.c =================================================================== --- linux-2.6.orig/drivers/block/ll_rw_blk.c 2005-04-12 22:26:13.000000000 +1000 +++ linux-2.6/drivers/block/ll_rw_blk.c 2005-04-12 22:26:14.000000000 +1000 @@ -1955,7 +1955,6 @@ static struct request *get_request_wait( DEFINE_WAIT(wait); struct request *rq; - generic_unplug_device(q); do { struct request_list *rl = &q->rq; @@ -1967,6 +1966,7 @@ static struct request *get_request_wait( if (!rq) { struct io_context *ioc; + generic_unplug_device(q); io_schedule(); /* |  |