iocost: Fix check condition of iocg abs_vdebt
authorChengming Zhou <zhouchengming@bytedance.com>
Thu, 30 Jul 2020 09:03:21 +0000 (17:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:32 +0000 (08:23 +0200)
commitd850fdbff6f468db14a34c335cc95feb4bfb4be1
tree92a7f06daf994140e8b95f766bf9c0171f10da9e
parent8a9324f267aac16e4603e51761cdb13293950f30
iocost: Fix check condition of iocg abs_vdebt

[ Upstream commit d9012a59db54442d5b2fcfdfcded35cf566397d3 ]

We shouldn't skip iocg when its abs_vdebt is not zero.

Fixes: 0b80f9866e6b ("iocost: protect iocg->abs_vdebt with iocg->waitq.lock")
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-iocost.c