blk-mq: export blk_mq_freeze_queue()
authorJens Axboe <axboe@fb.com>
Fri, 2 Jan 2015 22:05:12 +0000 (15:05 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 2 Jan 2015 22:05:12 +0000 (15:05 -0700)
Commit b4c6a028774b exported the start and unfreeze, but we need
the regular blk_mq_freeze_queue() for the loop conversion.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blk-mq.h

index 1a41d7aefbd57fe923e25c02835db5971838632b..a7d4a988516f173e8f942a183e815bc1e33ea602 100644 (file)
@@ -136,6 +136,7 @@ void blk_mq_freeze_queue(struct request_queue *q)
        blk_mq_freeze_queue_start(q);
        blk_mq_freeze_queue_wait(q);
 }
+EXPORT_SYMBOL_GPL(blk_mq_freeze_queue);
 
 void blk_mq_unfreeze_queue(struct request_queue *q)
 {
index 3b43f509432cd1cc340ec7040326f8beee2ef6f1..5b6500c77ed2deec2fb87cdb5a51239da4d73be6 100644 (file)
@@ -212,6 +212,7 @@ 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_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);