diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-08-02 19:51:11 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-08-02 23:21:36 +0300 |
commit | 7d9595d848cdff5c7939f68eec39e0c5d36a1d67 (patch) | |
tree | 7c67e749ebd0d30db067ed41e18fde8fdc34a0d0 /Makefile | |
parent | 1814f2e3fb95b58490e56a38fefe462ffe8fb9ad (diff) | |
download | linux-7d9595d848cdff5c7939f68eec39e0c5d36a1d67.tar.xz |
dm rq: fix the starting and stopping of blk-mq queues
Improve dm_stop_queue() to cancel any requeue_work. Also, have
dm_start_queue() and dm_stop_queue() clear/set the QUEUE_FLAG_STOPPED
for the blk-mq request_queue.
On suspend dm_stop_queue() handles stopping the blk-mq request_queue
BUT: even though the hw_queues are marked BLK_MQ_S_STOPPED at that point
there is still a race that is allowing block/blk-mq.c to call ->queue_rq
against a hctx that it really shouldn't. Add a check to
dm_mq_queue_rq() that guards against this rarity (albeit _not_
race-free).
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # must patch dm.c on < 4.8 kernels
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions