Repository navigation
Conversation
|
Upstream branch: d135ab4 |
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
e2feb52 to
62120bf
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
62120bf to
68c2433
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
68c2433 to
c3ed9eb
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
c3ed9eb to
97e0024
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
97e0024 to
323c51f
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
323c51f to
f782022
Compare
c7f678d to
6aa6cd1
Compare
|
Upstream branch: b3dfbde |
f782022 to
6dff291
Compare
|
Upstream branch: b3dfbde |
bfq_entity::allocated counts the requests allocated in an entity's subtree. Request allocation increments the queue entity and its ancestors, while request release decrements the queue entity and its current ancestors. When bfq_bfqq_move() moves a queue with outstanding requests to another group, it changes entity->parent without transferring these charges. The old ancestors retain the charges, while subsequent request releases decrement the new ancestors even though they were never charged. This can leave the destination group's allocated count negative and the source group's count inflated after all requests have completed, distorting the limits enforced by bfqq_request_over_limit(). Subtract the queue's outstanding request count from its old ancestors before dropping the old group reference, and add it to the new ancestors after reparenting. Leave the queue's own count unchanged. Shared ancestors have no net change, and bfqd->lock serializes the transfer with request accounting. Fixes: 98f0449 ("bfq: Track number of allocated requests in bfq_entity") Cc: stable@vger.kernel.org Signed-off-by: sunyangkai <sunyangkai@fnnas.com> Reviewed-by: Yu Kuai <yukuai@fygo.io>
6dff291 to
75afba1
Compare
Pull request for series with
subject: bfq: Transfer allocated request counts when moving queues
version: 1
url: https://patchwork.kernel.org/series/1195286/