summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorLei Chen <lennychen@tencent.com>2020-11-30 05:20:52 +0300
committerJens Axboe <axboe@kernel.dk>2020-12-01 01:01:18 +0300
commit5a20d073ec54a72d9a732fa44bfe14954eb6332f (patch)
tree57925b7a8b605419b02895dc5d9dc83e573c999c /block
parent63653368c25ff0b1b1aaf045c97ea87bd8c16123 (diff)
downloadlinux-5a20d073ec54a72d9a732fa44bfe14954eb6332f.tar.xz
block: wbt: Remove unnecessary invoking of wbt_update_limits in wbt_init
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>
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 fd410086fe1d..0321ca83e73f 100644
--- a/block/blk-wbt.c
+++ b/block/blk-wbt.c
@@ -835,7 +835,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.