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