diff options
author | weiping zhang <zhangweiping@didichuxing.com> | 2017-11-23 21:39:03 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-23 22:00:15 -0700 |
commit | 612ea091fc77770d659b82ea44a1d5646e0af54c (patch) | |
tree | 86e6b33570e172698bfd6b9b3be05219cc86c8be /block/blk-wbt.c | |
parent | be597e974c8dd7b169d7b652bcba677dc2c3619f (diff) |
blk-wbt: remove duplicated setting in wbt_init
rwb->wc and rwb->queue_depth were overwritten by wbt_set_write_cache and
wbt_set_queue_depth, remove the default setting.
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-wbt.c')
-rw-r--r-- | block/blk-wbt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-wbt.c b/block/blk-wbt.c index b252da0e4c11..ec903532a5d1 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -723,8 +723,6 @@ int wbt_init(struct request_queue *q) init_waitqueue_head(&rwb->rq_wait[i].wait); } - rwb->wc = 1; - rwb->queue_depth = RWB_DEF_DEPTH; rwb->last_comp = rwb->last_issue = jiffies; rwb->queue = q; rwb->win_nsec = RWB_WINDOW_NSEC; |