[patch 6/9] blk: unplug later

Nick Piggin
2005-04-12T13:02:28Z

[-- Attachment #1: Type: text/plain, Size: 32 bytes --]

6/9

--
SUSE Labs, Novell Inc.

[-- Attachment #2: blk-unplug-later.patch --]
[-- Type: text/plain, Size: 726 bytes --]

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();

/*