iotests: Test blockdev-reopen with iothreads and throttling
commitee810602376125ca0e0afd6b7c715e13740978ea
authorKevin Wolf <kwolf@redhat.com>
Thu, 3 Feb 2022 14:05:34 +0000 (3 15:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Feb 2022 08:44:16 +0000 (11 09:44 +0100)
tree0d275ce7cc3c167ba27595ff5ae3c04cd36379d7
parentaba8205be0707b9d108e32254e186ba88107a869
iotests: Test blockdev-reopen with iothreads and throttling

The 'throttle' block driver implements .bdrv_co_drain_end, so
blockdev-reopen will have to wait for it to complete in the polling
loop at the end of qmp_blockdev_reopen(). This makes AIO_WAIT_WHILE()
release the AioContext lock, which causes a crash if the lock hasn't
correctly been taken.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20220203140534.36522-3-kwolf@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/245
tests/qemu-iotests/245.out