dm rq: leverage blk_mq_queue_busy() to check for outstanding IO
authorMike Snitzer <snitzer@redhat.com>
Thu, 6 Dec 2018 16:41:17 +0000 (11:41 -0500)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Dec 2018 15:30:37 +0000 (08:30 -0700)
commitdbd3bbd291a03f1383de6242e7999e8487cb869b
tree67c9990860e1ade506bdb69b04304a0b0e3f557d
parent80a787ba3809deb694ee632919badb73890daf05
dm rq: leverage blk_mq_queue_busy() to check for outstanding IO

Now that request-based dm-multipath only supports blk-mq, make use of
the newly introduced blk_mq_queue_busy() to check for outstanding IO --
rather than (ab)using the block core's in_flight counters.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-rq.c