]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Make sure throttled BDSes always have a BB
authorKevin Wolf <kwolf@redhat.com>
Mon, 21 Mar 2016 09:49:51 +0000 (10:49 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:29 +0000 (16:45 +0200)
commita5614993d79584af93bb845f69f59872b3f76cf8
treee511d519aeb53d92c3f334d7f912c988a19cdfbd
parent8ec4fe0a4bed4fa27e6f28a746bcf77b27cd05a3
block: Make sure throttled BDSes always have a BB

It was already true in principle that a throttled BDS always has a BB
attached, except that the order of operations while attaching or
detaching a BDS to/from a BB wasn't careful enough.

This commit breaks graph manipulations while I/O throttling is enabled.
It would have been possible to keep things working with some temporary
hacks, but quite cumbersome, so it's not worth the hassle. We'll fix
things again in a minute.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
block/block-backend.c
blockdev.c
tests/test-throttle.c