]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: add test for stream job with an unaligned prefetch read
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 22 Mar 2024 09:50:09 +0000 (10:50 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2024 13:21:26 +0000 (14:21 +0100)
commit12d7b3bbd3333cededd3b695501d8d247239d769
tree58f6a9106e9cfa68f4c6f5d23d94b962ac041393
parentbac09b093ebbb79e6a7444c7b979c32ca5540132
iotests: add test for stream job with an unaligned prefetch read

Previously, bdrv_pad_request() could not deal with a NULL qiov when
a read needed to be aligned. During prefetch, a stream job will pass a
NULL qiov. Add a test case to cover this scenario.

By accident, also covers a previous race during shutdown, where block
graph changes during iteration in bdrv_flush_all() could lead to
unreferencing the wrong block driver state and an assertion failure
later.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20240322095009.346989-5-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/tests/stream-unaligned-prefetch [new file with mode: 0755]
tests/qemu-iotests/tests/stream-unaligned-prefetch.out [new file with mode: 0644]