Revert "blk-mq: don't use sync workqueue flushing from drivers"
authorMing Lei <[email protected]>
Tue, 6 Jun 2017 15:22:10 +0000 (23:22 +0800)
committerJens Axboe <[email protected]>
Sun, 18 Jun 2017 20:24:48 +0000 (14:24 -0600)
commit641a9ed60f3620936921a58fb21d9f3aa891f3a4
tree36421200c74e648854f95f0d417910194ef2c056
parent39a70c76b89b81db91a72a86b6c6a9b239013417
Revert "blk-mq: don't use sync workqueue flushing from drivers"

This patch reverts commit 2719aa217e0d02(blk-mq: don't use
sync workqueue flushing from drivers) because only
blk_mq_quiesce_queue() need the sync flush, and now
we don't need to stop queue any more, so revert it.

Also changes to cancel_delayed_work() in blk_mq_stop_hw_queue().

Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/blk-mq.c