diff options
| author | Fiona Ebner <f.ebner@proxmox.com> | 2025-05-30 17:11:10 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2025-07-14 15:42:04 +0200 |
| commit | 0a0474b065b97e9a25c2723bde87afbc77ba4bd9 (patch) | |
| tree | 183910f389c0e81e8553c1ef4823cdef8f6692e3 /include/qemu | |
| parent | c6b5328b5b81a358df766094a361b747eadc55a8 (diff) | |
| download | focaccia-qemu-0a0474b065b97e9a25c2723bde87afbc77ba4bd9.tar.gz focaccia-qemu-0a0474b065b97e9a25c2723bde87afbc77ba4bd9.zip | |
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>
Diffstat (limited to 'include/qemu')
| -rw-r--r-- | include/qemu/job.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/job.h b/include/qemu/job.h index a5a04155ea..bb8ee766ef 100644 --- a/include/qemu/job.h +++ b/include/qemu/job.h @@ -263,7 +263,7 @@ struct JobDriver { * This callback will not be invoked if the job has already failed. * If it fails, abort and then clean will be called. */ - int (*prepare)(Job *job); + int GRAPH_UNLOCKED_PTR (*prepare)(Job *job); /** * If the callback is not NULL, it will be invoked when all the jobs |