diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2023-10-27 17:53:24 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2023-11-07 19:14:20 +0100 |
| commit | 5c0ef4954f4cd8131df27f5f8cebe3ec215d64b3 (patch) | |
| tree | e0d0eb005da8e34b38d123fff986aa9491650d7e /block/commit.c | |
| parent | 3204c2e33b6fb77897756bdd8639913f02647300 (diff) | |
| download | focaccia-qemu-5c0ef4954f4cd8131df27f5f8cebe3ec215d64b3.tar.gz focaccia-qemu-5c0ef4954f4cd8131df27f5f8cebe3ec215d64b3.zip | |
block: Mark bdrv_replace_node_common() GRAPH_WRLOCK
Instead of taking the writer lock internally, require callers to already hold it when calling bdrv_replace_node_common(). Basically everthing in the function needs the lock and its callers may already want to hold the graph lock and so wouldn't be able to call functions that take it internally. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20231027155333.420094-16-kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions