Re: [Qemu-devel] [PATCH 3/4] block: Fix reconfiguring graph with drained nodes

2016-05-23 Thread Eric Blake
On 05/23/2016 10:55 AM, Kevin Wolf wrote: > When changing the BlockDriverState that a BdrvChild points to while the > node is currently drained, we must call the .drained_end() parent > callback. Conversely, when this means attaching a new node that is > already drained, we need to call .drained_be

[Qemu-devel] [PATCH 3/4] block: Fix reconfiguring graph with drained nodes

2016-05-23 Thread Kevin Wolf
When changing the BlockDriverState that a BdrvChild points to while the node is currently drained, we must call the .drained_end() parent callback. Conversely, when this means attaching a new node that is already drained, we need to call .drained_begin(). bdrv_root_attach_child() takes now an opaq