Skip to content

Commit

Permalink
[PATCH] blk: unplug later
Browse files Browse the repository at this point in the history
get_request_wait needn't unplug the device immediately.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Jun 23, 2005
1 parent fde6ad2 commit bdd646a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,6 @@ static struct request *get_request_wait(request_queue_t *q, int rw)
DEFINE_WAIT(wait);
struct request *rq;

generic_unplug_device(q);
do {
struct request_list *rl = &q->rq;

Expand All @@ -1981,6 +1980,7 @@ static struct request *get_request_wait(request_queue_t *q, int rw)
if (!rq) {
struct io_context *ioc;

generic_unplug_device(q);
io_schedule();

/*
Expand Down

0 comments on commit bdd646a

Please sign in to comment.