diff mbox series

[1/3] block/mirror: set .co for active-write MirrorOp objects

Message ID 20210702211636.228981-2-vsementsov@virtuozzo.com (mailing list archive)
State New, archived
Headers show
Series Fix active mirror dead-lock | expand

Commit Message

Vladimir Sementsov-Ogievskiy July 2, 2021, 9:16 p.m. UTC
This field is unused, but it very helpful for debugging.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
 block/mirror.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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);