On Fri, Feb 13, 2015 at 06:06:09PM +0200, Alberto Garcia wrote:
> From: BenoƮt Canet <benoit.ca...@nodalink.com>
> 
> Group throttling will share ThrottleState between multiple bs.
> As a consequence the ThrottleState will be accessed by multiple aio context.
> 
> Timers are tied to their aio context so they must go out of the ThrottleState 
> structure.
> 
> This commit paves the way for each bs of a common ThrottleState to have its 
> own
> timer.
> 
> Signed-off-by: Benoit Canet <benoit.ca...@nodalink.com>
> Signed-off-by: Alberto Garcia <be...@igalia.com>
> ---
>  block.c                   | 35 ++++++++++++--------
>  include/block/block_int.h |  1 +
>  include/qemu/throttle.h   | 38 ++++++++++++++--------
>  tests/test-throttle.c     | 82 
> ++++++++++++++++++++++++++---------------------
>  util/throttle.c           | 73 ++++++++++++++++++++++++-----------------
>  5 files changed, 135 insertions(+), 94 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>

Attachment: pgpIyZluKRQh8.pgp
Description: PGP signature

Reply via email to