quorum: Do cleanup in caller coroutine
authorKevin Wolf <kwolf@redhat.com>
Thu, 10 Nov 2016 13:24:27 +0000 (14:24 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 9 Jan 2017 12:30:52 +0000 (13:30 +0100)
commit0f31977d9dd659ae39aa42e3904c5c1b23da1475
tree24a3c7573baa297f20deded875bb982cb2175207
parentce15dc08ef13438ba7be75e6887162ad2cc5c6c9
quorum: Do cleanup in caller coroutine

Instead of calling quorum_aio_finalize() deeply nested in what used
to be an AIO callback, do it in the same functions that allocated the
AIOCB.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/quorum.c