block: invoke .bdrv_drain callback in coroutine context and from AioContext
commit61124f03ab7e71d269417aafddbc2501d0379bc6
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jun 2017 13:27:45 +0000 (29 15:27 +0200)
committerFam Zheng <famz@redhat.com>
Mon, 17 Jul 2017 03:28:15 +0000 (17 11:28 +0800)
tree321518c9ee66ce91e47c8f8f5219dc8152f87dfc
parente7569c18292e1e17004d88a4543e2dfcdb2f6d90
block: invoke .bdrv_drain callback in coroutine context and from AioContext

This will let the callback take a CoMutex in the next patch.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20170629132749.997-8-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/io.c
block/qed.c
include/block/block_int.h