blk-iocost: Factor out the active iocgs' state check into a separate function
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Thu, 26 Nov 2020 08:16:14 +0000 (16:16 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 Dec 2020 20:20:31 +0000 (13:20 -0700)
commit2474787a75b4f358e81f367653c73edecd67aa2d
treec9cc7ea5f63349d311b09ee45a73c73969ec5883
parentc09245f61c6ac4ef253a5fcf97e5bcfc0ce25fc7
blk-iocost: Factor out the active iocgs' state check into a separate function

Factor out the iocgs' state check into a separate function to
simplify the ioc_timer_fn().

No functional change.

Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c