Jens Axboe c125311d96 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: c1c80384c8f ("block: remove external dependency on wbt_flags")
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-08-23 09:34:46 -06:00
..
2018-08-14 10:23:25 -07:00
2018-08-22 13:38:05 -07:00
2018-08-22 13:38:05 -07:00
2018-08-22 13:38:05 -07:00
2018-06-17 05:37:55 +09:00
2018-07-24 14:43:26 -06:00
2018-08-05 19:32:09 -06:00
2018-05-31 10:50:54 -04:00