OSDN Git Service

block: add aio_context field in ThrottleGroupMember
authorManos Pitsidianakis <el13635@mail.ntua.gr>
Fri, 25 Aug 2017 13:20:24 +0000 (16:20 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 5 Sep 2017 14:47:52 +0000 (16:47 +0200)
commitc61791fc23ecd96e6a1e038c379c4033ffd5f40c
tree54226255fb34d61ce0dcfe2cf05724f3e2594c02
parent022cdc9f407434ad6eb7ace80362a1218a009bcc
block: add aio_context field in ThrottleGroupMember

timer_cb() needs to know about the current Aio context of the throttle
request that is woken up. In order to make ThrottleGroupMember backend
agnostic, this information is stored in an aio_context field instead of
accessing it from BlockBackend.

Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
block/throttle-groups.c
include/block/throttle-groups.h
tests/test-throttle.c