aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blk-mq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2013-10-25 09:45:58 -0400
committerJens Axboe <axboe@kernel.dk>2013-10-25 09:45:58 -0400
commit280d45f6c35d8d7a0fe20c36caf426e3ac139cf9 (patch)
treeb3b059cfc6c43ce301fd7fc309f65ea888a9311a /include/linux/blk-mq.h
parentf2298c0403b0dfcaef637eba0c02c4a06d7a25ab (diff)
blk-mq: add blk_mq_stop_hw_queues
Add a helper to iterate over all hw queues and stop them. This is useful for driver that implement PM suspend functionality. Signed-off-by: Christoph Hellwig <hch@lst.de> Modified to just call blk_mq_stop_hw_queue() by Jens. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r--include/linux/blk-mq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 746042ff321a..3368b97bee73 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -136,6 +136,7 @@ void blk_mq_end_io(struct request *rq, int error);
136 136
137void blk_mq_stop_hw_queue(struct blk_mq_hw_ctx *hctx); 137void blk_mq_stop_hw_queue(struct blk_mq_hw_ctx *hctx);
138void blk_mq_start_hw_queue(struct blk_mq_hw_ctx *hctx); 138void blk_mq_start_hw_queue(struct blk_mq_hw_ctx *hctx);
139void blk_mq_stop_hw_queues(struct request_queue *q);
139void blk_mq_start_stopped_hw_queues(struct request_queue *q); 140void blk_mq_start_stopped_hw_queues(struct request_queue *q);
140 141
141/* 142/*