]> git.baikalelectronics.ru Git - kernel.git/commit
iocost: Fix check condition of iocg abs_vdebt
authorChengming Zhou <zhouchengming@bytedance.com>
Thu, 30 Jul 2020 09:03:21 +0000 (17:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jul 2020 17:45:12 +0000 (11:45 -0600)
commit06ee580a3510ee044ee8045d82c97dc8656726fc
treee0ca1de20967be26d86cf71aa868e87195830029
parenta12c7fc962b18a8c99ee6d2a271d223e555e5c1b
iocost: Fix check condition of iocg abs_vdebt

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

Fixes: cdbfb203c3a6 ("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>
block/blk-iocost.c