diff options
author | weiping zhang <zhangweiping@didichuxing.com> | 2017-11-23 08:39:03 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-24 00:00:15 -0500 |
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) | |||
723 | init_waitqueue_head(&rwb->rq_wait[i].wait); | 723 | init_waitqueue_head(&rwb->rq_wait[i].wait); |
724 | } | 724 | } |
725 | 725 | ||
726 | rwb->wc = 1; | ||
727 | rwb->queue_depth = RWB_DEF_DEPTH; | ||
728 | rwb->last_comp = rwb->last_issue = jiffies; | 726 | rwb->last_comp = rwb->last_issue = jiffies; |
729 | rwb->queue = q; | 727 | rwb->queue = q; |
730 | rwb->win_nsec = RWB_WINDOW_NSEC; | 728 | rwb->win_nsec = RWB_WINDOW_NSEC; |