diff options
Diffstat (limited to 'drivers/block/hd.c')
-rw-r--r-- | drivers/block/hd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/hd.c b/drivers/block/hd.c index 288ab63c1029..961de56d00a9 100644 --- a/drivers/block/hd.c +++ b/drivers/block/hd.c | |||
@@ -592,12 +592,11 @@ repeat: | |||
592 | del_timer(&device_timer); | 592 | del_timer(&device_timer); |
593 | 593 | ||
594 | if (!hd_req) { | 594 | if (!hd_req) { |
595 | hd_req = elv_next_request(hd_queue); | 595 | hd_req = blk_fetch_request(hd_queue); |
596 | if (!hd_req) { | 596 | if (!hd_req) { |
597 | do_hd = NULL; | 597 | do_hd = NULL; |
598 | return; | 598 | return; |
599 | } | 599 | } |
600 | blkdev_dequeue_request(hd_req); | ||
601 | } | 600 | } |
602 | req = hd_req; | 601 | req = hd_req; |
603 | 602 | ||