diff options
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 3e10442615d1..502622f628bc 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -100,12 +100,7 @@ static int mtd_blktrans_thread(void *arg) | |||
100 | struct mtd_blktrans_dev *dev; | 100 | struct mtd_blktrans_dev *dev; |
101 | int res; | 101 | int res; |
102 | 102 | ||
103 | if (!req) { | 103 | if (!req && !(req = blk_fetch_request(rq))) { |
104 | req = elv_next_request(rq); | ||
105 | if (req) | ||
106 | blkdev_dequeue_request(req); | ||
107 | } | ||
108 | if (!req) { | ||
109 | set_current_state(TASK_INTERRUPTIBLE); | 104 | set_current_state(TASK_INTERRUPTIBLE); |
110 | spin_unlock_irq(rq->queue_lock); | 105 | spin_unlock_irq(rq->queue_lock); |
111 | schedule(); | 106 | schedule(); |