Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdd646a4 authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds
Browse files

[PATCH] blk: unplug later



get_request_wait needn't unplug the device immediately.

Signed-off-by: default avatarNick Piggin <nickpiggin@yahoo.com.au>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fde6ad22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

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

			/*