[PATCH v2 0/3] block-jobs: add final flush

Vladimir Sementsov-Ogievskiy posted 3 patches 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240626145038.458709-1-vsementsov@yandex-team.ru
Maintainers: John Snow <jsnow@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
block/backup.c             |  2 +-
block/block-copy.c         |  7 ++++
block/commit.c             | 41 +++++++++++++++--------
block/stream.c             | 67 +++++++++++++++++++++++---------------
include/block/block-copy.h |  1 +
5 files changed, 77 insertions(+), 41 deletions(-)
[PATCH v2 0/3] block-jobs: add final flush
Posted by Vladimir Sementsov-Ogievskiy 5 months ago
Actually block job is not completed without the final flush. It's
rather unexpected to have broken target when job was successfully
completed long ago and now we fail to flush or process just
crashed/killed.

Mirror job already has mirror_flush() for this. So, it's OK.

Add similar things for other jobs: backup, stream, commit.

v2: rework stream and commit, also split into 3 commits.

Vladimir Sementsov-Ogievskiy (3):
  block/commit: implement final flush
  block/stream: implement final flush
  block/backup: implement final flush

 block/backup.c             |  2 +-
 block/block-copy.c         |  7 ++++
 block/commit.c             | 41 +++++++++++++++--------
 block/stream.c             | 67 +++++++++++++++++++++++---------------
 include/block/block-copy.h |  1 +
 5 files changed, 77 insertions(+), 41 deletions(-)

-- 
2.34.1