Re: [PATCH] blockdev: fix drive-backup transaction endless drained section

2021-07-08 Thread Kevin Wolf
Am 07.07.2021 um 15:35 hat Vladimir Sementsov-Ogievskiy geschrieben: > Forgotten thing :( > > Kevin, could you please queue it in your block branch? For me not to > bother Peter with one-patch pull request. No problem, I've queued it now. Kevin

Re: [PATCH] blockdev: fix drive-backup transaction endless drained section

2021-07-07 Thread Vladimir Sementsov-Ogievskiy
Forgotten thing :( Kevin, could you please queue it in your block branch? For me not to bother Peter with one-patch pull request. 08.06.2021 20:18, Vladimir Sementsov-Ogievskiy wrote: drive_backup_prepare() does bdrv_drained_begin() in hope that bdrv_drained_end() will be called in drive_backu

Re: [PATCH] blockdev: fix drive-backup transaction endless drained section

2021-06-08 Thread Eric Blake
On Tue, Jun 08, 2021 at 08:18:52PM +0300, Vladimir Sementsov-Ogievskiy wrote: > drive_backup_prepare() does bdrv_drained_begin() in hope that > bdrv_drained_end() will be called in drive_backup_clean(). Still we > need to set state->bs for this to work. That's done too late: a lot of > failure path

Re: [PATCH] blockdev: fix drive-backup transaction endless drained section

2021-06-08 Thread Vladimir Sementsov-Ogievskiy
08.06.2021 20:24, Vladimir Sementsov-Ogievskiy wrote: [try add gitlab issue email to cc, will see how it work :)] That was bad idea. The message becomes a new comment at issue page. Formatting is broken, looks bad. I've removed that comment 08.06.2021 20:18, Vladimir Sementsov-Ogievskiy wro

Re: [PATCH] blockdev: fix drive-backup transaction endless drained section

2021-06-08 Thread Vladimir Sementsov-Ogievskiy
[try add gitlab issue email to cc, will see how it work :)] 08.06.2021 20:18, Vladimir Sementsov-Ogievskiy wrote: drive_backup_prepare() does bdrv_drained_begin() in hope that bdrv_drained_end() will be called in drive_backup_clean(). Still we need to set state->bs for this to work. That's done

[PATCH] blockdev: fix drive-backup transaction endless drained section

2021-06-08 Thread Vladimir Sementsov-Ogievskiy
drive_backup_prepare() does bdrv_drained_begin() in hope that bdrv_drained_end() will be called in drive_backup_clean(). Still we need to set state->bs for this to work. That's done too late: a lot of failure paths in drive_backup_prepare() miss setting state->bs. Fix that. Fixes: 2288ccfac96281c3