diff options
Diffstat (limited to 'drivers/block/mg_disk.c')
-rw-r--r-- | drivers/block/mg_disk.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/block/mg_disk.c b/drivers/block/mg_disk.c index 1ca5d1423fa3..c0cd0a03f698 100644 --- a/drivers/block/mg_disk.c +++ b/drivers/block/mg_disk.c | |||
@@ -671,10 +671,8 @@ static void mg_request_poll(struct request_queue *q) | |||
671 | 671 | ||
672 | while (1) { | 672 | while (1) { |
673 | if (!host->req) { | 673 | if (!host->req) { |
674 | host->req = elv_next_request(q); | 674 | host->req = blk_fetch_request(q); |
675 | if (host->req) | 675 | if (!host->req) |
676 | blkdev_dequeue_request(host->req); | ||
677 | else | ||
678 | break; | 676 | break; |
679 | } | 677 | } |
680 | 678 | ||
@@ -744,10 +742,8 @@ static void mg_request(struct request_queue *q) | |||
744 | 742 | ||
745 | while (1) { | 743 | while (1) { |
746 | if (!host->req) { | 744 | if (!host->req) { |
747 | host->req = elv_next_request(q); | 745 | host->req = blk_fetch_request(q); |
748 | if (host->req) | 746 | if (!host->req) |
749 | blkdev_dequeue_request(host->req); | ||
750 | else | ||
751 | break; | 747 | break; |
752 | } | 748 | } |
753 | req = host->req; | 749 | req = host->req; |