blk-mq: Make blk_mq_all_tag_busy_iter static
authorSagi Grimberg <sagig@mellanox.com>
Thu, 10 Mar 2016 11:58:49 +0000 (13:58 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 21:07:36 +0000 (15:07 -0600)
No caller outside the blk-mq code so we can settle
with it static.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c
include/linux/blk-mq.h

index 2fd04286f103520a8fd9b370b4dba1633be810ef..56a0c37a3d06e0e4037c1cda55c0c6d1c6a98f21 100644 (file)
@@ -464,15 +464,14 @@ static void bt_tags_for_each(struct blk_mq_tags *tags,
        }
 }
 
-void blk_mq_all_tag_busy_iter(struct blk_mq_tags *tags, busy_tag_iter_fn *fn,
-               void *priv)
+static void blk_mq_all_tag_busy_iter(struct blk_mq_tags *tags,
+               busy_tag_iter_fn *fn, void *priv)
 {
        if (tags->nr_reserved_tags)
                bt_tags_for_each(tags, &tags->breserved_tags, 0, fn, priv, true);
        bt_tags_for_each(tags, &tags->bitmap_tags, tags->nr_reserved_tags, fn, priv,
                        false);
 }
-EXPORT_SYMBOL(blk_mq_all_tag_busy_iter);
 
 void blk_mq_tagset_busy_iter(struct blk_mq_tag_set *tagset,
                busy_tag_iter_fn *fn, void *priv)
index c808fec1ce446914aa8b193284ad3cf41a5ca886..2498fdf3a503a261cf663469cabae48d46d5c24d 100644 (file)
@@ -238,8 +238,6 @@ void blk_mq_start_hw_queues(struct request_queue *q);
 void blk_mq_start_stopped_hw_queues(struct request_queue *q, bool async);
 void blk_mq_run_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_all_tag_busy_iter(struct blk_mq_tags *tags, busy_tag_iter_fn *fn,
-               void *priv);
 void blk_mq_tagset_busy_iter(struct blk_mq_tag_set *tagset,
                busy_tag_iter_fn *fn, void *priv);
 void blk_mq_freeze_queue(struct request_queue *q);