]> Git Repo - qemu.git/commit
throttle: Correct access to wrong BlockBackendPublic structures
authorAlberto Garcia <[email protected]>
Mon, 17 Oct 2016 15:46:02 +0000 (18:46 +0300)
committerKevin Wolf <[email protected]>
Mon, 24 Oct 2016 15:54:03 +0000 (17:54 +0200)
commit6bf77e1c2dc24da1bade16e8a9a637f3b127314d
treeac77620a874cf822efda48467f8d2d558a72074f
parent3ac2f2f765a0bc18dfb18c38a522e6123289ffc1
throttle: Correct access to wrong BlockBackendPublic structures

In 27ccdd52598290f0f8b58be56e235aff7aebfaf3 the throttling fields were
moved from BlockDriverState to BlockBackend. However in a few cases
the code started using throttling fields from the active BlockBackend
instead of the round-robin token, making the algorithm behave
incorrectly.

This can cause starvation if there's a throttling group with several
drives but only one of them has I/O.

Cc: [email protected]
Reported-by: Paolo Bonzini <[email protected]>
Signed-off-by: Alberto Garcia <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/throttle-groups.c
This page took 0.023175 seconds and 4 git commands to generate.