]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: readd missing reset of parent-entity service
authorPaolo Valente <paolo.valente@linaro.org>
Thu, 16 Aug 2018 16:51:15 +0000 (18:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Aug 2018 19:08:10 +0000 (13:08 -0600)
commit6cc9341475bb2b3f82339c80ab859fba6e215797
tree207364ee03acae3e83532d35146021316202f40b
parent14990ff5732852674454ebad9e7ed408e2c019e0
block, bfq: readd missing reset of parent-entity service

The received-service counter needs to be equal to 0 when an entity is
set in service. Unfortunately, commit "block, bfq: fix service being
wrongly set to zero in case of preemption" mistakenly removed the
resetting of this counter for the parent entities of the bfq_queue
being set in service. This commit fixes this issue by resetting
service for parent entities, directly on the expiration of the
in-service bfq_queue.

Fixes: 11fc7d68bc8f ("block, bfq: fix service being wrongly set to zero in case of preemption")
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c