]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
blk-mq: Delete blk_mq_has_free_tags() and blk_mq_can_queue()
authorJohn Garry <john.garry@huawei.com>
Wed, 13 Nov 2019 17:27:21 +0000 (01:27 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2019 19:50:38 +0000 (12:50 -0700)
These functions are not referenced, so delete them.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c
include/linux/blk-mq.h

index 008388e82b5c55f2e06b224998a46bf5b46a9d39..fbacde454718583555b38f07d0fe88ad89b712c3 100644 (file)
 #include "blk-mq.h"
 #include "blk-mq-tag.h"
 
-bool blk_mq_has_free_tags(struct blk_mq_tags *tags)
-{
-       if (!tags)
-               return true;
-
-       return sbitmap_any_bit_clear(&tags->bitmap_tags.sb);
-}
-
 /*
  * If a previously inactive queue goes active, bump the active user count.
  * We need to do this before try to allocate driver tag, then even if fail
index 61deab0b5a5a565c1214ad305cac52f0dde7fb3d..15bc74acb57eca1c56bf0564cb000c002ea08618 100644 (file)
@@ -28,7 +28,6 @@ extern void blk_mq_free_tags(struct blk_mq_tags *tags);
 extern unsigned int blk_mq_get_tag(struct blk_mq_alloc_data *data);
 extern void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, struct blk_mq_tags *tags,
                           struct blk_mq_ctx *ctx, unsigned int tag);
-extern bool blk_mq_has_free_tags(struct blk_mq_tags *tags);
 extern int blk_mq_tag_update_depth(struct blk_mq_hw_ctx *hctx,
                                        struct blk_mq_tags **tags,
                                        unsigned int depth, bool can_grow);
index 5c9adcaa27ac4b119819d90f5822334dd8625d51..323c9cb28066bcc385ea77d43efcb89b36a55820 100644 (file)
@@ -260,12 +260,6 @@ void blk_mq_wake_waiters(struct request_queue *q)
                        blk_mq_tag_wakeup_all(hctx->tags, true);
 }
 
-bool blk_mq_can_queue(struct blk_mq_hw_ctx *hctx)
-{
-       return blk_mq_has_free_tags(hctx->tags);
-}
-EXPORT_SYMBOL(blk_mq_can_queue);
-
 /*
  * Only need start/end time stamping if we have iostat or
  * blk stats enabled, or using an IO scheduler.
index dc03e059fdff02c8dd82b4567da00528d82926ae..11cfd6470b1a3081fcca14944c7df0cd14c748c6 100644 (file)
@@ -424,7 +424,6 @@ void blk_mq_free_tag_set(struct blk_mq_tag_set *set);
 void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule);
 
 void blk_mq_free_request(struct request *rq);
-bool blk_mq_can_queue(struct blk_mq_hw_ctx *);
 
 bool blk_mq_queue_inflight(struct request_queue *q);