]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rq-qos: get rid of redundant wbt_update_limits()
authorYufen Yu <yuyufen@huawei.com>
Tue, 17 Sep 2019 12:04:27 +0000 (20:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Sep 2019 07:13:10 +0000 (01:13 -0600)
We have updated limits after calling wbt_set_min_lat(). No need to
update again.

Reviewed-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c

index 962fc0c44381fd45c0e2e2f68799d16664245aed..46f5198be017320185d287e5d4d502037da54b86 100644 (file)
@@ -482,7 +482,6 @@ static ssize_t queue_wb_lat_store(struct request_queue *q, const char *page,
        blk_mq_quiesce_queue(q);
 
        wbt_set_min_lat(q, val);
-       wbt_update_limits(q);
 
        blk_mq_unquiesce_queue(q);
        blk_mq_unfreeze_queue(q);