summaryrefslogtreecommitdiffstats
path: root/include/exec/exec-all.h
diff options
context:
space:
mode:
authorFam Zheng2017-04-05 08:44:24 +0200
committerFam Zheng2017-04-11 14:07:15 +0200
commitaabf591007a83dc6520329bce929570115849286 (patch)
treef951eea607ecebecae95238d0f9e347d01cea572 /include/exec/exec-all.h
parentblock: Make bdrv_parent_drained_begin/end public (diff)
downloadqemu-aabf591007a83dc6520329bce929570115849286.tar.gz
qemu-aabf591007a83dc6520329bce929570115849286.tar.xz
qemu-aabf591007a83dc6520329bce929570115849286.zip
block: Quiesce old aio context during bdrv_set_aio_context
The fact that the bs->aio_context is changing can confuse the dataplane iothread, because of the now fine granularity aio context lock. bdrv_drain should rather be a bdrv_drained_begin/end pair, but since bs->aio_context is changing, we can just use aio_disable_external and bdrv_parent_drained_begin. Reported-by: Ed Swierk <eswierk@skyportsystems.com> Signed-off-by: Fam Zheng <famz@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions