diff options
| author | Kevin Wolf | 2018-09-06 12:28:10 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-09-25 15:50:15 +0200 |
| commit | ecc1a5c790cf2c7732cb9755ca388c2fe108d1a1 (patch) | |
| tree | b50f1d3ced7378edc117f8414df6c8abf18675bd /include | |
| parent | block: Remove aio_poll() in bdrv_drain_poll variants (diff) | |
| download | qemu-ecc1a5c790cf2c7732cb9755ca388c2fe108d1a1.tar.gz qemu-ecc1a5c790cf2c7732cb9755ca388c2fe108d1a1.tar.xz qemu-ecc1a5c790cf2c7732cb9755ca388c2fe108d1a1.zip | |
test-bdrv-drain: Test nested poll in bdrv_drain_poll_top_level()
This is a regression test for a deadlock that could occur in callbacks
called from the aio_poll() in bdrv_drain_poll_top_level(). The
AioContext lock wasn't released and therefore would be taken a second
time in the callback. This would cause a possible AIO_WAIT_WHILE() in
the callback to hang.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
