Home
last modified time | relevance | path

Searched hist:"5 ac724184c286b367525035eabf4b8bb4a386c54" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/block/
H A Dthrottle-groups.cdiff 5ac724184c286b367525035eabf4b8bb4a386c54 Wed Nov 04 07:15:35 CST 2015 Alberto Garcia <berto@igalia.com> throttle: Check for pending requests in throttle_group_unregister_bs()

throttle_group_unregister_bs() removes a BlockDriverState from its
throttling group and destroys the timers. This means that there must
be no pending throttled requests at that point (because it would be
impossible to complete them), so the caller has to drain them first.

At the moment throttle_group_unregister_bs() is only called from
bdrv_io_limits_disable(), which already takes care of draining the
requests, so there's nothing to worry about, but this patch makes
this invariant explicit in the documentation and adds the relevant
assertions.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>