blk-iolatency: clear use_delay when io.latency is set to zero
authorTejun Heo <tj@kernel.org>
Thu, 13 Jun 2019 22:30:37 +0000 (15:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 15 Jun 2019 16:39:36 +0000 (10:39 -0600)
commit5de0073fcd50cc1f150895a7bb04d3cf8067b1d7
tree6bb69d881d5f4ece07693f4b8dae2dbeccad4c2d
parentf1f8f292cd12292289cae87aac3a5c035186ec54
blk-iolatency: clear use_delay when io.latency is set to zero

If use_delay was non-zero when the latency target of a cgroup was set
to zero, it will stay stuck until io.latency is enabled on the cgroup
again.  This keeps readahead disabled for the cgroup impacting
performance negatively.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Josef Bacik <jbacik@fb.com>
Fixes: d70675121546 ("block: introduce blk-iolatency io controller")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iolatency.c