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>
Showing
- block/block-backend.c 6 additions, 9 deletionsblock/block-backend.c
- block/throttle-groups.c 24 additions, 14 deletionsblock/throttle-groups.c
- include/block/throttle-groups.h 6 additions, 1 deletioninclude/block/throttle-groups.h
- tests/test-throttle.c 33 additions, 30 deletionstests/test-throttle.c
Please register or sign in to comment