Re: [PATCH 3/8] qcow2: Unlock the graph in qcow2_do_open() where necessary

2023-05-12 Thread Eric Blake
On Wed, May 10, 2023 at 10:35:56PM +0200, Kevin Wolf wrote: > > 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 th

[PATCH 3/8] qcow2: Unlock the graph in qcow2_do_open() where necessary

2023-05-10 Thread Kevin Wolf
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 --- block/qcow2.c | 6 ++ 1 fil