]> Git Repo - qemu.git/commitdiff
block/mirror: set .co for active-write MirrorOp objects
authorVladimir Sementsov-Ogievskiy <[email protected]>
Fri, 2 Jul 2021 21:16:34 +0000 (00:16 +0300)
committerKevin Wolf <[email protected]>
Tue, 20 Jul 2021 11:14:45 +0000 (13:14 +0200)
This field is unused, but it very helpful for debugging.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20210702211636[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/mirror.c

index 019f6deaa5d2e62de009123f02ec2cbe8320865a..ad6aac2f959243ece6eb5cf11f0593612a941849 100644 (file)
@@ -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);
This page took 0.023123 seconds and 4 git commands to generate.