diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-05-10 22:35:57 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-05-19 19:12:12 +0200 |
commit | 3db0c8b25c452b53aabc8efa36e655c7c02abb8f (patch) | |
tree | 5c38d0cd7a2b6bcd88d20b7a0b5d000e8054a4d9 /linux-user/generic | |
parent | e3e31dc87208007784b93a19f8efcdda90ea64f6 (diff) | |
download | qemu-3db0c8b25c452b53aabc8efa36e655c7c02abb8f.zip qemu-3db0c8b25c452b53aabc8efa36e655c7c02abb8f.tar.gz qemu-3db0c8b25c452b53aabc8efa36e655c7c02abb8f.tar.bz2 |
qemu-img: Take graph lock more selectively
If we take a reader lock, we can't call any functions that take a writer
lock internally without causing deadlocks once the reader lock is
actually enforced in the main thread, too. Take the reader lock only
where it is actually needed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230510203601.418015-5-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user/generic')
0 files changed, 0 insertions, 0 deletions