Skip to content

Commit

Permalink
block: wbt: Remove unnecessary invoking of wbt_update_limits in wbt_init
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Lei Chen authored and axboe committed Nov 30, 2020
1 parent 6365336 commit 5a20d07
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion block/blk-wbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5a20d07

Please sign in to comment.