[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210923134631.105719-5-yukuai3@huawei.com>
Date: Thu, 23 Sep 2021 21:46:29 +0800
From: Yu Kuai <yukuai3@...wei.com>
To: <axboe@...nel.dk>, <tj@...nel.org>
CC: <linux-block@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<cgroups@...r.kernel.org>, <yukuai3@...wei.com>,
<yi.zhang@...wei.com>
Subject: [PATCH 4/6] blk-iolatency: splict blkcg_iolatency_free() from blkcg_iolatency_exit()
Prepare to split 'kfree(blkiolat)' from blkcg_iolatency_exit(), no
functional changes.
Signed-off-by: Yu Kuai <yukuai3@...wei.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
Powered by blists - more mailing lists