summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2014-12-19 17:54:14 -0700
committerJens Axboe <axboe@fb.com>2014-12-20 10:34:15 -0700
commitb4c6a028774bcf3f20ed1e66c27a05aa51a8cf55 (patch)
tree06e839b2bd07bb335c86c9798fb9cee53cc8c6ab /include
parentc76541a932113faa5b3be65a3f0a3d4ebbc86aeb (diff)
downloadlinux-stable-b4c6a028774bcf3f20ed1e66c27a05aa51a8cf55.tar.gz
linux-stable-b4c6a028774bcf3f20ed1e66c27a05aa51a8cf55.tar.bz2
linux-stable-b4c6a028774bcf3f20ed1e66c27a05aa51a8cf55.zip
blk-mq: Export freeze/unfreeze functions
Let drivers prevent entering a queue that isn't available. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-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 8aded9ab2e4e..3b43f509432c 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -212,6 +212,8 @@ void blk_mq_start_stopped_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_tag_busy_iter(struct blk_mq_hw_ctx *hctx, busy_iter_fn *fn,
void *priv);
+void blk_mq_unfreeze_queue(struct request_queue *q);
+void blk_mq_freeze_queue_start(struct request_queue *q);
/*
* Driver command data is immediately after the request. So subtract request