From 0e5b0a2d54f4dca2f6d1a676da8ec089dc143001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Mon, 8 Jun 2015 18:17:41 +0200 Subject: 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 Signed-off-by: Alberto Garcia Reviewed-by: Stefan Hajnoczi Message-id: 6cf9ea96d8b32ae2f8769cead38f68a6a0c8c909.1433779731.git.berto@igalia.com Signed-off-by: Stefan Hajnoczi --- include/block/block_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/block') diff --git a/include/block/block_int.h b/include/block/block_int.h index f004378d58..02b312fea9 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -380,6 +380,7 @@ struct BlockDriverState { /* I/O throttling */ ThrottleState throttle_state; + ThrottleTimers throttle_timers; CoQueue throttled_reqs[2]; bool io_limits_enabled; -- cgit v1.2.3