diff options
author | Sergio Lopez | 2020-12-14 18:05:16 +0100 |
---|---|---|
committer | Eric Blake | 2021-01-20 21:48:08 +0100 |
commit | c7040ff64ec93ee925a81d3547db925fe7d1f1c0 (patch) | |
tree | 0ff573fe23bb203ef2c770a6136f934c82e455f4 /nbd | |
parent | qemu-nbd: Fix a memleak in nbd_client_thread() (diff) | |
download | qemu-c7040ff64ec93ee925a81d3547db925fe7d1f1c0.tar.gz qemu-c7040ff64ec93ee925a81d3547db925fe7d1f1c0.tar.xz qemu-c7040ff64ec93ee925a81d3547db925fe7d1f1c0.zip |
block: Honor blk_set_aio_context() context requirements
The documentation for bdrv_set_aio_context_ignore() states this:
* The caller must own the AioContext lock for the old AioContext of bs, but it
* must not own the AioContext lock for new_context (unless new_context is the
* same as the current context of bs).
As blk_set_aio_context() makes use of this function, this rule also
applies to it.
Fix all occurrences where this rule wasn't honored.
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20201214170519.223781-2-slp@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'nbd')
0 files changed, 0 insertions, 0 deletions