[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 4/4] iotests: add test for stream job with an unaligned pr
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v3 4/4] iotests: add test for stream job with an unaligned prefetch read |
Date: |
Mon, 25 Mar 2024 16:09:39 -0400 |
On Fri, Mar 22, 2024 at 10:50:09AM +0100, Fiona Ebner wrote:
> 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>
> ---
>
> No changes in v3.
> New in v2.
>
> .../tests/stream-unaligned-prefetch | 86 +++++++++++++++++++
> .../tests/stream-unaligned-prefetch.out | 5 ++
> 2 files changed, 91 insertions(+)
> create mode 100755 tests/qemu-iotests/tests/stream-unaligned-prefetch
> create mode 100644 tests/qemu-iotests/tests/stream-unaligned-prefetch.out
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
- [PATCH v3 0/4] fix two edge cases related to stream block jobs, Fiona Ebner, 2024/03/22
- [PATCH v3 4/4] iotests: add test for stream job with an unaligned prefetch read, Fiona Ebner, 2024/03/22
- Re: [PATCH v3 4/4] iotests: add test for stream job with an unaligned prefetch read,
Stefan Hajnoczi <=
- [PATCH v3 2/4] block-backend: fix edge case in bdrv_next() where BDS associated to BB changes, Fiona Ebner, 2024/03/22
- [PATCH v3 3/4] block-backend: fix edge case in bdrv_next_cleanup() where BDS associated to BB changes, Fiona Ebner, 2024/03/22
- [PATCH v3 1/4] block/io: accept NULL qiov in bdrv_pad_request, Fiona Ebner, 2024/03/22
- Re: [PATCH v3 0/4] fix two edge cases related to stream block jobs, Stefan Hajnoczi, 2024/03/25