Skip to content

Commit

Permalink
[openSUSE] block: Take the graph lock in bdrv_snapshot_list (bsc#1211…
Browse files Browse the repository at this point in the history
…000)

This function has up until now always ran in the main loop, outside of
a coroutine. We're about to make it run inside a coroutine so start
actually taking the graph lock.

Link: https://lore.kernel.org/r/[email protected]
References: bsc#1211000
Signed-off-by: Fabiano Rosas <[email protected]>
Signed-off-by: Dario Faggioli <[email protected]>
  • Loading branch information
Fabiano Rosas authored and dfaggioli committed Dec 18, 2024
1 parent a174a6e commit 49c3154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ int bdrv_snapshot_list(BlockDriverState *bs,
QEMUSnapshotInfo **psn_info)
{
GLOBAL_STATE_CODE();
GRAPH_RDLOCK_GUARD_MAINLOOP();
GRAPH_RDLOCK_GUARD();

BlockDriver *drv = bs->drv;
BlockDriverState *fallback_bs = bdrv_snapshot_fallback(bs);
Expand Down

0 comments on commit 49c3154

Please sign in to comment.