block: wbt: Remove unnecessary invoking of wbt_update_limits in wbt_init
authorLei Chen <lennychen@tencent.com>
Mon, 30 Nov 2020 02:20:52 +0000 (10:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Oct 2022 08:41:15 +0000 (09:41 +0100)
commit 5a20d073ec54a72d9a732fa44bfe14954eb6332f upstream.

It's unnecessary to call wbt_update_limits explicitly within wbt_init,
because it will be called in the following function wbt_queue_depth_changed.

Signed-off-by: Lei Chen <lennychen@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-wbt.c

index 35d81b5deae1c821da2f8a937dcc4eb60bbec834..4ec0a018a2ad3ffa5081a26ac98ca2b969d9992d 100644 (file)
@@ -840,7 +840,6 @@ int wbt_init(struct request_queue *q)
        rwb->enable_state = WBT_STATE_ON_DEFAULT;
        rwb->wc = 1;
        rwb->rq_depth.default_depth = RWB_DEF_DEPTH;
-       wbt_update_limits(rwb);
 
        /*
         * Assign rwb and add the stats callback.