diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2020-09-07 16:36:17 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-07 20:11:15 -0600 |
commit | ddfb8b0beda1c371a44897c0359adccf030f7c58 (patch) | |
tree | 242f7928449a204e0d94ba9c5349dc7312f96b4b /block/blk-mq-sched.c | |
parent | 384d87ef2c954fc58e6c5fd8253e4a1984f5fe02 (diff) | |
download | linux-rpi-ddfb8b0beda1c371a44897c0359adccf030f7c58.tar.gz linux-rpi-ddfb8b0beda1c371a44897c0359adccf030f7c58.tar.bz2 linux-rpi-ddfb8b0beda1c371a44897c0359adccf030f7c58.zip |
block: Remove unused blk_mq_sched_free_hctx_data()
Now we usually free the hctx->sched_data by e->type->ops.exit_hctx(),
and no users will use blk_mq_sched_free_hctx_data() function.
Remove it.
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-sched.c')
-rw-r--r-- | block/blk-mq-sched.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c index 86d5545342ff..3e9596738852 100644 --- a/block/blk-mq-sched.c +++ b/block/blk-mq-sched.c @@ -18,21 +18,6 @@ #include "blk-mq-tag.h" #include "blk-wbt.h" -void blk_mq_sched_free_hctx_data(struct request_queue *q, - void (*exit)(struct blk_mq_hw_ctx *)) -{ - struct blk_mq_hw_ctx *hctx; - int i; - - queue_for_each_hw_ctx(q, hctx, i) { - if (exit && hctx->sched_data) - exit(hctx); - kfree(hctx->sched_data); - hctx->sched_data = NULL; - } -} -EXPORT_SYMBOL_GPL(blk_mq_sched_free_hctx_data); - void blk_mq_sched_assign_ioc(struct request *rq) { struct request_queue *q = rq->q; |