summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-06-02 09:53:30 +0300
committerJens Axboe <axboe@kernel.dk>2021-06-11 20:53:03 +0300
commit08c1d480ed38995690a7d83f2c6a505f6cbbed9f (patch)
tree54c6345f85dbb05789200cce37403c9e969f38aa /block/blk-mq.c
parent0592c3d166c967056faa03b944c6c9c9b4e8a0cc (diff)
downloadlinux-08c1d480ed38995690a7d83f2c6a505f6cbbed9f.tar.xz
blk-mq: remove blk_mq_init_sq_queue
All users are gone now. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Link: https://lore.kernel.org/r/20210602065345.355274-16-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index b123077a0dc4..3115ea2d0990 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -3156,28 +3156,6 @@ struct gendisk *__blk_mq_alloc_disk(struct blk_mq_tag_set *set, void *queuedata)
}
EXPORT_SYMBOL(__blk_mq_alloc_disk);
-/*
- * Helper for setting up a queue with mq ops, given queue depth, and
- * the passed in mq ops flags.
- */
-struct request_queue *blk_mq_init_sq_queue(struct blk_mq_tag_set *set,
- const struct blk_mq_ops *ops,
- unsigned int queue_depth,
- unsigned int set_flags)
-{
- struct request_queue *q;
- int ret;
-
- ret = blk_mq_alloc_sq_tag_set(set, ops, queue_depth, set_flags);
- if (ret)
- return ERR_PTR(ret);
- q = blk_mq_init_queue(set);
- if (IS_ERR(q))
- blk_mq_free_tag_set(set);
- return q;
-}
-EXPORT_SYMBOL(blk_mq_init_sq_queue);
-
static struct blk_mq_hw_ctx *blk_mq_alloc_and_init_hctx(
struct blk_mq_tag_set *set, struct request_queue *q,
int hctx_idx, int node)