diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-10-27 17:53:14 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-11-07 19:14:19 +0100 |
commit | f3bbc53dc56c5d410f76442da6ad15ec8f9439fc (patch) | |
tree | cd6a05dfd503b5922695d95c1843e5d71d428401 /nbd | |
parent | 03b9eaca540322dd6dd4810aa57f3196ce971542 (diff) | |
download | qemu-f3bbc53dc56c5d410f76442da6ad15ec8f9439fc.zip qemu-f3bbc53dc56c5d410f76442da6ad15ec8f9439fc.tar.gz qemu-f3bbc53dc56c5d410f76442da6ad15ec8f9439fc.tar.bz2 |
block: Mark block_job_add_bdrv() GRAPH_WRLOCK
Instead of taking the writer lock internally, require callers to already
hold it when calling block_job_add_bdrv(). These callers will typically
already hold the graph lock once the locking work is completed, which
means that they can't call functions that take it internally.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231027155333.420094-6-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'nbd')
0 files changed, 0 insertions, 0 deletions