]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/stream: mark stream_prepare() as GRAPH_UNLOCKED
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 30 May 2025 15:11:10 +0000 (17:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Jul 2025 13:42:04 +0000 (15:42 +0200)
commit0a0474b065b97e9a25c2723bde87afbc77ba4bd9
tree183910f389c0e81e8553c1ef4823cdef8f6692e3
parentc6b5328b5b81a358df766094a361b747eadc55a8
block/stream: mark stream_prepare() as GRAPH_UNLOCKED

The function stream_prepare() calls bdrv_drain_all_begin(), which
must be called with the graph unlocked.

Also mark the JobDriver's prepare() callback as GRAPH_UNLOCKED_PTR,
because that is the callback via which stream_prepare() is reached.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20250530151125.955508-34-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/stream.c
include/qemu/job.h