OSDN Git Service

iotests: Test two stream jobs in a single iothread
authorKevin Wolf <kwolf@redhat.com>
Wed, 15 Nov 2023 17:20:12 +0000 (18:20 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 21 Nov 2023 11:45:21 +0000 (12:45 +0100)
commit8f371203837da7b35aa341b48a9027c2e91d0a9a
tree444474681d88c405d97aa27aa19925b5656cba2b
parent1dbc7d344246e1c8000825bee220e4c2767ba765
iotests: Test two stream jobs in a single iothread

This tests two parallel stream jobs that will complete around the same
time and run on two different disks in the same iothreads. It is loosely
based on the bug report at https://issues.redhat.com/browse/RHEL-1761.

For me, this test hangs reliably with the originally reported bug in
blk_remove_bs(). After fixing it, it intermittently hangs for the bugs
fixed after it, missing AioContext unlocking in bdrv_graph_wrunlock()
and in stream_prepare(). The deadlocks seem to happen more frequently
when the test directory is on tmpfs.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231115172012.112727-5-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/tests/iothreads-stream [new file with mode: 0755]
tests/qemu-iotests/tests/iothreads-stream.out [new file with mode: 0644]