mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] blk: unplug later
get_request_wait needn't unplug the device immediately. Signed-off-by: Nick Piggin <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fde6ad2248
commit
bdd646a446
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue