Re: [Qemu-block] [PATCH v5 07/12] block: Add "drained begin/end" for transactional backup

2015-10-21 Thread Jeff Cody
On Wed, Oct 21, 2015 at 10:06:44AM +0800, Fam Zheng wrote: > This ensures the atomicity of the transaction by avoiding processing of > external requests such as those from ioeventfd. > > Move the assignment to state->bs up right after bdrv_drained_begin, so > that we can use it in the clean callba

[Qemu-block] [PATCH v5 07/12] block: Add "drained begin/end" for transactional backup

2015-10-20 Thread Fam Zheng
This ensures the atomicity of the transaction by avoiding processing of external requests such as those from ioeventfd. Move the assignment to state->bs up right after bdrv_drained_begin, so that we can use it in the clean callback. The abort callback will still check bs->job and state->job, so it