diff options
author | Tejun Heo <tj@kernel.org> | 2020-03-10 13:07:46 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-10 11:37:00 -0600 |
commit | dcd6589b11d3b1e71f516a87a7b9646ed356b4c0 (patch) | |
tree | 91180ac53f515b5e6e293f2828fef6bbb812b1a8 /drivers/nvme | |
parent | 14afc59361976c0ba39e3a9589c3eaa43ebc7e1d (diff) | |
download | linux-dcd6589b11d3b1e71f516a87a7b9646ed356b4c0.tar.bz2 |
blk-iocost: fix incorrect vtime comparison in iocg_is_idle()
vtimes may wrap and time_before/after64() should be used to determine
whether a given vtime is before or after another. iocg_is_idle() was
incorrectly using plain "<" comparison do determine whether done_vtime
is before vtime. Here, the only thing we're interested in is whether
done_vtime matches vtime which indicates that there's nothing in
flight. Let's test for inequality instead.
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 7caa47151ab2 ("blkcg: implement blk-iocost")
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions