]> 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)
commit2721436337cae3a238e86aa4090af890791ec8b2
tree3c0ce01c5a00be7aac4dec067c2e198fa827ce5f
parent622665b77221a1eac9ae74cce3f99ddc67acf919
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