diff options
| author | Hanna Reitz | 2022-11-09 17:54:50 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2022-11-10 13:33:55 +0100 |
| commit | da93d5c84e56e6b4e84aa8e98b6b984c9b6bb528 (patch) | |
| tree | d8b866ef3f8161885ebdd26e9c9426b8f3feb30c /tests | |
| parent | block/mirror: Drop mirror_wait_for_any_operation() (diff) | |
| download | qemu-da93d5c84e56e6b4e84aa8e98b6b984c9b6bb528.tar.gz qemu-da93d5c84e56e6b4e84aa8e98b6b984c9b6bb528.tar.xz qemu-da93d5c84e56e6b4e84aa8e98b6b984c9b6bb528.zip | |
block/mirror: Fix NULL s->job in active writes
There is a small gap in mirror_start_job() before putting the mirror
filter node into the block graph (bdrv_append() call) and the actual job
being created. Before the job is created, MirrorBDSOpaque.job is NULL.
It is possible that requests come in when bdrv_drained_end() is called,
and those requests would see MirrorBDSOpaque.job == NULL. Have our
filter node handle that case gracefully.
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20221109165452.67927-4-hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
