Skip to contentSkip to conversation

block: wbt: Remove unnecessary invoking of wbt_update_limits in wbt_init

PATCH Applied [email protected] 2 participants 2 messages Nov 30, 2020 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: wbt: Remove unnecessary invoking of wbt_update_limits in wbt_init

From: Lei Chen <[email protected]>

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.

---
 block/blk-wbt.c | 1 -
 1 file changed, 1 deletion(-)
block/blk-wbt.c +0 -1
index fd41008..0321ca8 100644
@@ -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.
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw
Quoted 4 lines · On 11/29/20 7:20 PM, [email protected] wrote:

From: Lei Chen <[email protected]>

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.

Applied, thanks.

Signature · 1 line
Jens Axboe