diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index fa212348c4c9..c66333d8e48d 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -890,9 +890,11 @@ EXPORT_SYMBOL(blk_get_request); | |||
890 | */ | 890 | */ |
891 | void blk_start_queueing(struct request_queue *q) | 891 | void blk_start_queueing(struct request_queue *q) |
892 | { | 892 | { |
893 | if (!blk_queue_plugged(q)) | 893 | if (!blk_queue_plugged(q)) { |
894 | if (unlikely(blk_queue_stopped(q))) | ||
895 | return; | ||
894 | q->request_fn(q); | 896 | q->request_fn(q); |
895 | else | 897 | } else |
896 | __generic_unplug_device(q); | 898 | __generic_unplug_device(q); |
897 | } | 899 | } |
898 | EXPORT_SYMBOL(blk_start_queueing); | 900 | EXPORT_SYMBOL(blk_start_queueing); |