]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Unlock the graph in qcow2_do_open() where necessary
authorKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 20:35:56 +0000 (22:35 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 May 2023 17:12:12 +0000 (19:12 +0200)
commite3e31dc87208007784b93a19f8efcdda90ea64f6
treeeea196663c5d7b02cdc33b0089a978504412e2ee
parenta184563778f2b8970eb93291f08108e66432a575
qcow2: Unlock the graph in qcow2_do_open() where necessary

qcow2_do_open() calls a few no_co_wrappers that wrap functions taking
the graph lock internally as a writer. Therefore, it can't hold the
reader lock across these calls, it causes deadlocks. Drop the lock
temporarily around the calls.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230510203601.418015-4-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c