[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1606702852-14157-1-git-send-email-lennychen@tencent.com>
Date: Mon, 30 Nov 2020 10:20:52 +0800
From: chenlei0x@...il.com
To: chenlei0x@...il.com, axboe@...nel.dk, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Lei Chen <lennychen@...cent.com>
Subject: [PATCH] block: wbt: Remove unnecessary invoking of wbt_update_limits in wbt_init
From: Lei Chen <lennychen@...cent.com>
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@...cent.com>
---
block/blk-wbt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/block/blk-wbt.c b/block/blk-wbt.c
index fd41008..0321ca8 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.
--
1.8.3.1
Powered by blists - more mailing lists