Re: [Qemu-block] [PATCH for-3.1? 1/3] block: Always abort reopen after prepare succeeded

2018-11-16 Thread Max Reitz
On 16.11.18 17:02, Alberto Garcia wrote: > On Fri 16 Nov 2018 04:53:00 PM CET, Max Reitz wrote: >> bdrv_reopen_multiple() does not invoke bdrv_reopen_abort() for the >> element of the reopen queue for which bdrv_reopen_prepare() failed, >> because it assumes that the prepare function will have

Re: [Qemu-block] [PATCH for-3.1? 1/3] block: Always abort reopen after prepare succeeded

2018-11-16 Thread Alberto Garcia
On Fri 16 Nov 2018 04:53:00 PM CET, Max Reitz wrote: > bdrv_reopen_multiple() does not invoke bdrv_reopen_abort() for the > element of the reopen queue for which bdrv_reopen_prepare() failed, > because it assumes that the prepare function will have rolled back all > changes already. > > However,

[Qemu-block] [PATCH for-3.1? 1/3] block: Always abort reopen after prepare succeeded

2018-11-16 Thread Max Reitz
bdrv_reopen_multiple() does not invoke bdrv_reopen_abort() for the element of the reopen queue for which bdrv_reopen_prepare() failed, because it assumes that the prepare function will have rolled back all changes already. However, bdrv_reopen_prepare() does not do this in every case: It may