diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-07-03 00:16:34 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2021-07-20 13:14:45 +0200 |
commit | ead3f1bff99f4a4227975a1f026f4091e50f199f (patch) | |
tree | 038f2926d7dc9713c9f267caa1e6e7c1a3ab67be /block/mirror.c | |
parent | 143c2e0432859826c9e8d5b2baa307355f1a5332 (diff) |
block/mirror: set .co for active-write MirrorOp objects
This field is unused, but it very helpful for debugging.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210702211636.228981-2-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/mirror.c')
-rw-r--r-- | block/mirror.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/mirror.c b/block/mirror.c index 019f6deaa5..ad6aac2f95 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -1343,6 +1343,7 @@ static MirrorOp *coroutine_fn active_write_prepare(MirrorBlockJob *s, .bytes = bytes, .is_active_write = true, .is_in_flight = true, + .co = qemu_coroutine_self(), }; qemu_co_queue_init(&op->waiting_requests); QTAILQ_INSERT_TAIL(&s->ops_in_flight, op, next); |