lkml.org 
[lkml]   [2021]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/6] blk-iolatency: splict blkcg_iolatency_free() from blkcg_iolatency_exit()
    Date
    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
    \
     
     \ /
      Last update: 2021-09-23 15:37    [W:2.940 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site