mirror: Store MirrorOp.co for debuggability
commiteed325b92c3e68417121ea23f96e33af6a4654ed
authorKevin Wolf <kwolf@redhat.com>
Tue, 28 Jan 2020 15:06:41 +0000 (28 16:06 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Feb 2020 09:53:56 +0000 (18 10:53 +0100)
tree54e713957377b39fea21b2805c28e8e93ea7ebda
parent6c599282f8ab382fe59f03a6cae755b89561a7b3
mirror: Store MirrorOp.co for debuggability

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 <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/mirror.c