]> Git Repo - qemu.git/commit - block.c
block: Quiesce old aio context during bdrv_set_aio_context
authorFam Zheng <[email protected]>
Wed, 5 Apr 2017 06:44:24 +0000 (14:44 +0800)
committerFam Zheng <[email protected]>
Tue, 11 Apr 2017 12:07:15 +0000 (20:07 +0800)
commitaabf591007a83dc6520329bce929570115849286
treef951eea607ecebecae95238d0f9e347d01cea572
parent14e9559f4624e704a53d0789124b6f9ea9ebb5ca
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 <[email protected]>
Signed-off-by: Fam Zheng <[email protected]>
Acked-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Kevin Wolf <[email protected]>
block.c
This page took 0.021784 seconds and 4 git commands to generate.