]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: fix comments on __bfq_deactivate_entity
authorPaolo Valente <paolo.valente@linaro.org>
Thu, 6 Dec 2018 18:18:19 +0000 (19:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jan 2019 13:25:44 +0000 (06:25 -0700)
commit1c8e16230f8e929d1bae31ea8cb0222d262f79a4
treed948126554cfca203977a84265301bfd50efdff6
parent2dcb1b54ebba116a44dc073501d8193b209724f9
block, bfq: fix comments on __bfq_deactivate_entity

Comments on function __bfq_deactivate_entity contains two imprecise or
wrong statements:
1) The function performs the deactivation of the entity.
2) The function must be invoked only if the entity is on a service tree.

This commits replaces both statements with the correct ones:
1) The functions updates sched_data and service trees for the entity,
so as to represent entity as inactive (which is only part of the steps
needed for the deactivation of the entity).
2) The function must be invoked on every entity being deactivated.

Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-wf2q.c