[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH RFC 0/3] mirror: rework soft-cancelling READY mirror
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH RFC 0/3] mirror: rework soft-cancelling READY mirror |
Date: |
Tue, 27 Jul 2021 19:47:51 +0300 |
Hi all!
That's an alternative to (part of) Max's
"[PATCH for-6.1? v2 0/7] mirror: Handle errors after READY cancel"
and shows' my idea of handling soft-cancelling READY mirror case
directly in qmp_block_job_cancel. And cleanup all other job cancelling
functions.
That's untested draft, don't take it to heart :)
Vladimir Sementsov-Ogievskiy (3):
job: add job_complete_ex with do_graph_change argument
job: use complete(do_graph_change=false) to handle soft cancel
job: drop force argument of *job*cancel
include/qemu/job.h | 19 ++++++++----------
block/backup.c | 2 +-
block/mirror.c | 33 +++++++++++++++++---------------
blockdev.c | 13 +++++++++++--
job-qmp.c | 2 +-
job.c | 27 ++++++++++++++------------
tests/unit/test-bdrv-drain.c | 2 +-
tests/unit/test-block-iothread.c | 2 +-
tests/unit/test-blockjob-txn.c | 8 ++++----
tests/unit/test-blockjob.c | 4 ++--
10 files changed, 62 insertions(+), 50 deletions(-)
--
2.29.2
- [PATCH RFC 0/3] mirror: rework soft-cancelling READY mirror,
Vladimir Sementsov-Ogievskiy <=
- [PATCH 1/3] job: add job_complete_ex with do_graph_change argument, Vladimir Sementsov-Ogievskiy, 2021/07/27
- [PATCH 2/3] job: use complete(do_graph_change=false) to handle soft cancel, Vladimir Sementsov-Ogievskiy, 2021/07/27
- [PATCH 3/3] job: drop force argument of *job*cancel, Vladimir Sementsov-Ogievskiy, 2021/07/27
- Re: [PATCH RFC 0/3] mirror: rework soft-cancelling READY mirror, Vladimir Sementsov-Ogievskiy, 2021/07/27
- Re: [PATCH RFC 0/3] mirror: rework soft-cancelling READY mirror, Max Reitz, 2021/07/28