diff options
author | Sam Bradshaw <sbradshaw@micron.com> | 2014-05-23 15:30:16 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-23 15:30:16 -0400 |
commit | edf866b3805c5651bf7d035b72dc0190cb6ff4a7 (patch) | |
tree | 92396c09eb02e704abee45c72988b2616b31b0de /include/linux/blk-mq.h | |
parent | 07068d5b8ed8fa6759b2826ba9197e49b69a1fc3 (diff) |
blk-mq: export blk_mq_tag_busy_iter
Export the blk-mq in-flight tag iterator for driver consumption.
This is particularly useful in exception paths or SRSI where
in-flight IOs need to be cancelled and/or reissued. The NVMe driver
conversion will use this.
Signed-off-by: Sam Bradshaw <sbradshaw@micron.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 4d2800567aad..f76bb18350af 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
@@ -181,6 +181,7 @@ void blk_mq_stop_hw_queues(struct request_queue *q); | |||
181 | void blk_mq_start_hw_queues(struct request_queue *q); | 181 | void blk_mq_start_hw_queues(struct request_queue *q); |
182 | void blk_mq_start_stopped_hw_queues(struct request_queue *q, bool async); | 182 | void blk_mq_start_stopped_hw_queues(struct request_queue *q, bool async); |
183 | void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs); | 183 | void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs); |
184 | void blk_mq_tag_busy_iter(struct blk_mq_tags *tags, void (*fn)(void *data, unsigned long *), void *data); | ||
184 | 185 | ||
185 | /* | 186 | /* |
186 | * Driver command data is immediately after the request. So subtract request | 187 | * Driver command data is immediately after the request. So subtract request |