summaryrefslogtreecommitdiff
path: root/include/linux/blk-mq.h
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2017-03-01 22:22:11 +0300
committerJens Axboe <axboe@fb.com>2017-03-02 18:56:04 +0300
commitf91328c40a559362b6e7b7bfee01ca17fda87592 (patch)
treeb3bee10257454a313e11912a5754f0d4fb321e46 /include/linux/blk-mq.h
parent6bae363ee3057a14eec93440826813603559273a (diff)
downloadlinux-f91328c40a559362b6e7b7bfee01ca17fda87592.tar.xz
blk-mq: Provide freeze queue timeout
A driver may wish to take corrective action if queued requests do not complete within a set time. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r--include/linux/blk-mq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 8dacf680c851..b296a9006117 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -246,6 +246,8 @@ 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);
void blk_mq_freeze_queue_wait(struct request_queue *q);
+int blk_mq_freeze_queue_wait_timeout(struct request_queue *q,
+ unsigned long timeout);
int blk_mq_reinit_tagset(struct blk_mq_tag_set *set);
int blk_mq_map_queues(struct blk_mq_tag_set *set);