diff options
author | Fiona Ebner <f.ebner@proxmox.com> | 2023-10-31 14:54:23 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-10-31 18:20:29 +0100 |
commit | c45d0e1af0b9e8fa0b0abc30bd6a4ef8d37964b4 (patch) | |
tree | 8303bd8390151f1d86d17bdc557a68f8f458dafe /block/mirror.c | |
parent | 61a3a5a76a993b74c85f92585b10250d12323c38 (diff) | |
download | qemu-c45d0e1af0b9e8fa0b0abc30bd6a4ef8d37964b4.zip qemu-c45d0e1af0b9e8fa0b0abc30bd6a4ef8d37964b4.tar.gz qemu-c45d0e1af0b9e8fa0b0abc30bd6a4ef8d37964b4.tar.bz2 |
block/mirror: set actively_synced even after the job is ready
In preparation to allow switching from background to active mode. This
ensures that setting actively_synced will not be missed when the
switch happens after the job is ready.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-ID: <20231031135431.393137-3-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/mirror.c')
-rw-r--r-- | block/mirror.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/mirror.c b/block/mirror.c index dcd88de..1c2c00e 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -1074,9 +1074,9 @@ static int coroutine_fn mirror_run(Job *job, Error **errp) * the target in a consistent state. */ job_transition_to_ready(&s->common.job); - if (s->copy_mode != MIRROR_COPY_MODE_BACKGROUND) { - s->actively_synced = true; - } + } + if (s->copy_mode != MIRROR_COPY_MODE_BACKGROUND) { + s->actively_synced = true; } should_complete = s->should_complete || |