diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2016-03-10 14:58:46 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-12 22:43:53 +0300 |
commit | e0489487ec9cd79ee1fa0dc5d3789c08b0e51a2c (patch) | |
tree | e970b4bbd0d17b9049b243171ed65438e3f5053a /include/linux/blk-mq.h | |
parent | 37e58237a16b94fcd2c2d1b7e9c6e1ca661c231b (diff) | |
download | linux-e0489487ec9cd79ee1fa0dc5d3789c08b0e51a2c.tar.xz |
blk-mq: Export tagset iter function
Its useful to iterate on all the active tags in cases
where we will need to fail all the queues IO.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
[hch: carefully check for valid tagsets]
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 9ac9799b702b..c808fec1ce44 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -240,6 +240,8 @@ void blk_mq_run_hw_queues(struct request_queue *q, bool async); void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs); void blk_mq_all_tag_busy_iter(struct blk_mq_tags *tags, busy_tag_iter_fn *fn, void *priv); +void blk_mq_tagset_busy_iter(struct blk_mq_tag_set *tagset, + busy_tag_iter_fn *fn, void *priv); void blk_mq_freeze_queue(struct request_queue *q); void blk_mq_unfreeze_queue(struct request_queue *q); void blk_mq_freeze_queue_start(struct request_queue *q); |