]> git.proxmox.com Git - mirror_qemu.git/commit
test-bdrv-drain: Test AIO_WAIT_WHILE() in completion callback
authorKevin Wolf <kwolf@redhat.com>
Thu, 6 Sep 2018 09:58:01 +0000 (11:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 25 Sep 2018 13:50:15 +0000 (15:50 +0200)
commitae23dde9dd486e57e152a0ebc9802caddedc45fc
tree06785afe07e4dd7ec1d804decfe627172f7c40dc
parentde0fbe64806321fc3e6399bfab360553db87a41d
test-bdrv-drain: Test AIO_WAIT_WHILE() in completion callback

This is a regression test for a deadlock that occurred in block job
completion callbacks (via job_defer_to_main_loop) because the AioContext
lock was taken twice: once in job_finish_sync() and then again in
job_defer_to_main_loop_bh(). This would cause AIO_WAIT_WHILE() to hang.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
tests/test-bdrv-drain.c