blk-mq: Introduce blk_mq_queue_stopped()
authorBart Van Assche <bart.vanassche@sandisk.com>
Sat, 29 Oct 2016 00:19:37 +0000 (17:19 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 2 Nov 2016 17:17:24 +0000 (11:17 -0600)
commit94dbce5a6d7117336bd33963d045c234ef1f79b3
tree51ef593c5beb15b66ba36b3eaac027369441d16f
parentb231d956e2e09fbb12363e0315227b1e1d3d0a26
blk-mq: Introduce blk_mq_queue_stopped()

The function blk_queue_stopped() allows to test whether or not a
traditional request queue has been stopped. Introduce a helper
function that allows block drivers to query easily whether or not
one or more hardware contexts of a blk-mq queue have been stopped.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blk-mq.h