[Qemu-block] [PATCH v6 09/12] block: Add "drained begin/end" for internal snapshot

2015-10-22 Thread Fam Zheng
This ensures the atomicity of the transaction by avoiding processing of external requests such as those from ioeventfd. state->bs is assigned right after bdrv_drained_begin. Because it was used as the flag for deletion or not in abort, now we need a separate flag - InternalSnapshotState.created.

Re: [Qemu-block] [PATCH v6 09/12] block: Add "drained begin/end" for internal snapshot

2015-10-22 Thread Jeff Cody
On Thu, Oct 22, 2015 at 12:18:11PM +0200, Kevin Wolf wrote: > Am 22.10.2015 um 08:32 hat Fam Zheng geschrieben: > > This ensures the atomicity of the transaction by avoiding processing of > > external requests such as those from ioeventfd. > > > > state->bs is assigned right after

Re: [Qemu-block] [PATCH v6 09/12] block: Add "drained begin/end" for internal snapshot

2015-10-22 Thread Kevin Wolf
Am 22.10.2015 um 08:32 hat Fam Zheng geschrieben: > This ensures the atomicity of the transaction by avoiding processing of > external requests such as those from ioeventfd. > > state->bs is assigned right after bdrv_drained_begin. Because it was > used as the flag for deletion or not in abort,