OSDN Git Service

iotests: Test commit with iothreads and ongoing I/O
authorKevin Wolf <kwolf@redhat.com>
Wed, 17 May 2023 15:28:34 +0000 (17:28 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 May 2023 17:16:53 +0000 (19:16 +0200)
commit95fdd8db61848d31fde1d9b32da7f3f76babfa25
tree893bd2451805d9753852c09929fc3e9ed3cbcfd0
parent7c1f51bf38de8cea4ed5030467646c37b46edeb7
iotests: Test commit with iothreads and ongoing I/O

This tests exercises graph locking, draining, and graph modifications
with AioContext switches a lot. Amongst others, it serves as a
regression test for bdrv_graph_wrlock() deadlocking because it is called
with a locked AioContext and for AioContext handling in the NBD server.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230517152834.277483-4-kwolf@redhat.com>
Tested-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py
tests/qemu-iotests/tests/graph-changes-while-io
tests/qemu-iotests/tests/graph-changes-while-io.out