提交 7daac490 编写于 作者: C Coywolf Qi Hunt 提交者: Jens Axboe

[patch] cleanup: use blk_queue_stopped

This cleanup the source to use blk_queue_stopped.
Signed-off-by: NCoywolf Qi Hunt <qiyong@freeforge.net>
Signed-off-by: NJens Axboe <axboe@suse.de>
上级 73af994c
...@@ -1554,7 +1554,7 @@ void blk_plug_device(request_queue_t *q) ...@@ -1554,7 +1554,7 @@ void blk_plug_device(request_queue_t *q)
* don't plug a stopped queue, it must be paired with blk_start_queue() * don't plug a stopped queue, it must be paired with blk_start_queue()
* which will restart the queueing * which will restart the queueing
*/ */
if (test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags)) if (blk_queue_stopped(q))
return; return;
if (!test_and_set_bit(QUEUE_FLAG_PLUGGED, &q->queue_flags)) { if (!test_and_set_bit(QUEUE_FLAG_PLUGGED, &q->queue_flags)) {
...@@ -1587,7 +1587,7 @@ EXPORT_SYMBOL(blk_remove_plug); ...@@ -1587,7 +1587,7 @@ EXPORT_SYMBOL(blk_remove_plug);
*/ */
void __generic_unplug_device(request_queue_t *q) void __generic_unplug_device(request_queue_t *q)
{ {
if (unlikely(test_bit(QUEUE_FLAG_STOPPED, &q->queue_flags))) if (unlikely(blk_queue_stopped(q)))
return; return;
if (!blk_remove_plug(q)) if (!blk_remove_plug(q))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册