blk-mq: Introduce blk_mq_hctx_stopped()
authorBart Van Assche <bart.vanassche@sandisk.com>
Sat, 29 Oct 2016 00:19:15 +0000 (17:19 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 2 Nov 2016 17:17:24 +0000 (11:17 -0600)
commitb231d956e2e09fbb12363e0315227b1e1d3d0a26
treeb2d41828dd60300ca642af710fe633db3ad6536f
parent5d45161f9038f21257315df2816e775e7dcbb3e4
blk-mq: Introduce blk_mq_hctx_stopped()

Multiple functions test the BLK_MQ_S_STOPPED bit so introduce
a helper function that performs this test.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.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
block/blk-mq.h