On Tue, Mar 10, 2015 at 05:30:45PM +0200, Alberto Garcia wrote: > From: BenoƮt Canet <[email protected]> > > 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 <[email protected]> > Signed-off-by: Alberto Garcia <[email protected]> > --- > 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 <[email protected]>
pgpmAINAXQ69v.pgp
Description: PGP signature
