summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorLei Chen <lennychen@tencent.com>2020-11-30 10:20:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-30 09:41:15 +0100
commit392536023da18086d57565e716ed50193869b8e7 (patch)
treec46a016c966d8e88466302e57e8f83ea2376aa4f /block
parentab6aaa821024978b203b3e4cc431ba61ea495c21 (diff)
block: wbt: Remove unnecessary invoking of wbt_update_limits in wbt_init
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-wbt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-wbt.c b/block/blk-wbt.c
index 35d81b5deae1..4ec0a018a2ad 100644
--- a/block/blk-wbt.c
+++ b/block/blk-wbt.c
@@ -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.