On 1/28/20 9:17 AM, Kevin Wolf wrote:
If a coroutine is launched, but the coroutine pointer isn't stored
anywhere, debugging any problems inside the coroutine is quite hard.
Let's store the coroutine pointer of a mirror operation in MirrorOp to
have it available in the debugger.

Signed-off-by: Kevin Wolf <kw...@redhat.com>
---
  block/mirror.c | 2 ++
  1 file changed, 2 insertions(+)

Doesn't change semantics other than an unobservable performance delay; but the rewards in improved debugability warrant it.

Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to