aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/ll_rw_blk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index 2d6934a02867..46e54b441663 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -1589,7 +1589,8 @@ void blk_run_queue(struct request_queue *q)
1589 1589
1590 spin_lock_irqsave(q->queue_lock, flags); 1590 spin_lock_irqsave(q->queue_lock, flags);
1591 blk_remove_plug(q); 1591 blk_remove_plug(q);
1592 q->request_fn(q); 1592 if (!elv_queue_empty(q))
1593 q->request_fn(q);
1593 spin_unlock_irqrestore(q->queue_lock, flags); 1594 spin_unlock_irqrestore(q->queue_lock, flags);
1594} 1595}
1595EXPORT_SYMBOL(blk_run_queue); 1596EXPORT_SYMBOL(blk_run_queue);