From: weiping zhang Date: Thu, 23 Nov 2017 13:39:03 +0000 (+0800) Subject: blk-wbt: remove duplicated setting in wbt_init X-Git-Tag: v5.15~9879^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=612ea091fc77770d659b82ea44a1d5646e0af54c;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jens Axboe --- diff --git a/block/blk-wbt.c b/block/blk-wbt.c index b252da0..ec90353 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;