Messages in this thread Patch in this message | | | From | Yu Kuai <> | Subject | [PATCH 4/6] blk-iolatency: splict blkcg_iolatency_free() from blkcg_iolatency_exit() | Date | Thu, 23 Sep 2021 21:46:29 +0800 |
| |
Prepare to split 'kfree(blkiolat)' from blkcg_iolatency_exit(), no functional changes.
Signed-off-by: Yu Kuai <yukuai3@huawei.com> --- block/blk-iolatency.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c index c0545f9da549..f3b8848e6a46 100644 --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c @@ -648,10 +648,18 @@ static void blkcg_iolatency_exit(struct rq_qos *rqos) kfree(blkiolat); } +static void blkcg_iolatency_free(struct rq_qos *rqos) +{ + struct blk_iolatency *blkiolat = BLKIOLATENCY(rqos); + + kfree(blkiolat); +} + static struct rq_qos_ops blkcg_iolatency_ops = { .throttle = blkcg_iolatency_throttle, .done_bio = blkcg_iolatency_done_bio, .exit = blkcg_iolatency_exit, + .free = blkcg_iolatency_free, }; static void blkiolatency_timer_fn(struct timer_list *t) -- 2.31.1
| |