]> git.baikalelectronics.ru Git - kernel.git/commit
blk-wbt: don't maintain inflight counts if disabled
authorJens Axboe <axboe@kernel.dk>
Thu, 23 Aug 2018 15:34:46 +0000 (09:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Aug 2018 15:34:46 +0000 (09:34 -0600)
commit265de77ebb7f258c18cb6225986e8819447a349e
tree64bef9e91ac97c6c1d4fbd39b6f259b08ddc1670
parent137c2f69cb1c2c41de189932f1e9052d5ab0e9ff
blk-wbt: don't maintain inflight counts if disabled

A previous commit removed the ability to have per-rq flags. We used
those flags to maintain inflight counts. Since we don't have those
anymore, we have to always maintain inflight counts, even if wbt is
disabled. This is clearly suboptimal.

Add a queue quiesce around changing the wbt latency settings from sysfs
to work around this. With that, we can reliably put the enabled check in
our bio_to_wbt_flags(), since we know the WBT_TRACKED flag will be
consistent for the lifetime of the request.

Fixes: 7ca0545cdfb ("block: remove external dependency on wbt_flags")
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c
block/blk-wbt.c