diff options
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index f21ec964e411..ac804c635040 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -672,6 +672,16 @@ void blk_mq_stop_hw_queue(struct blk_mq_hw_ctx *hctx) | |||
672 | } | 672 | } |
673 | EXPORT_SYMBOL(blk_mq_stop_hw_queue); | 673 | EXPORT_SYMBOL(blk_mq_stop_hw_queue); |
674 | 674 | ||
675 | void blk_mq_stop_hw_queues(struct request_queue *q) | ||
676 | { | ||
677 | struct blk_mq_hw_ctx *hctx; | ||
678 | int i; | ||
679 | |||
680 | queue_for_each_hw_ctx(q, hctx, i) | ||
681 | blk_mq_stop_hw_queue(hctx); | ||
682 | } | ||
683 | EXPORT_SYMBOL(blk_mq_stop_hw_queues); | ||
684 | |||
675 | void blk_mq_start_hw_queue(struct blk_mq_hw_ctx *hctx) | 685 | void blk_mq_start_hw_queue(struct blk_mq_hw_ctx *hctx) |
676 | { | 686 | { |
677 | clear_bit(BLK_MQ_S_STOPPED, &hctx->state); | 687 | clear_bit(BLK_MQ_S_STOPPED, &hctx->state); |