]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/bfq-iosched.c
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)
commit614822f81f606e0064acdae11d9ec1efd3db4190
tree3c0ce01c5a00be7aac4dec067c2e198fa827ce5f
parent68017e5d87a2477d40476f1a0a06f202ee79316b
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