]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: add missing invocations of bfqg_stats_update_io_add/remove
authorLuca Miccio <lucmiccio@gmail.com>
Mon, 13 Nov 2017 06:34:08 +0000 (07:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Nov 2017 03:13:33 +0000 (20:13 -0700)
commit2dddd36341fce78d0cbb3a6c44a4522a4204f0c0
tree3c0ce01c5a00be7aac4dec067c2e198fa827ce5f
parenta89eca06d730036aeb3b540bdd022a0288ffa094
block, bfq: add missing invocations of bfqg_stats_update_io_add/remove

bfqg_stats_update_io_add and bfqg_stats_update_io_remove are to be
invoked, respectively, when an I/O request enters and when an I/O
request exits the scheduler. Unfortunately, bfq does not fully comply
with this scheme, because it does not invoke these functions for
requests that are inserted into or extracted from its priority
dispatch list. This commit fixes this mistake.

Tested-by: Lee Tibbert <lee.tibbert@gmail.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Luca Miccio <lucmiccio@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c