Commit 4425bdfd authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] fix broken blk_start_queue behavior

From Lou Langholtz <ldl@aros.net>

This fixes the behavior of blk_start_queue() so that request queues
really do start up again after blk_start_queue() is called (on queues
that were previously stopped via blk_stop_queue).
parent 2ecd9a6d
...@@ -1027,10 +1027,10 @@ int blk_remove_plug(request_queue_t *q) ...@@ -1027,10 +1027,10 @@ int blk_remove_plug(request_queue_t *q)
*/ */
static inline void __generic_unplug_device(request_queue_t *q) static inline void __generic_unplug_device(request_queue_t *q)
{ {
if (!blk_remove_plug(q)) if (test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags))
return; return;
if (test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags)) if (!blk_remove_plug(q))
return; return;
del_timer(&q->unplug_timer); del_timer(&q->unplug_timer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment