]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-throttle.c
throttle: Extract timers from ThrottleState into a separate structure
authorBenoît Canet <benoit.canet@nodalink.com>
Mon, 8 Jun 2015 16:17:41 +0000 (18:17 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 12 Jun 2015 13:00:00 +0000 (14:00 +0100)
commit0e5b0a2d54f4dca2f6d1a676da8ec089dc143001
tree039a4f4b776ee22294566dcda9a984d2fc3bcaa2
parentf4a769abaa51badea666093077c50c568c35de17
throttle: Extract timers from ThrottleState into a separate structure

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.canet@nodalink.com>
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 6cf9ea96d8b32ae2f8769cead38f68a6a0c8c909.1433779731.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
block/io.c
include/block/block_int.h
include/qemu/throttle.h
tests/test-throttle.c
util/throttle.c