]> git.ipfire.org Git - thirdparty/qemu.git/commit
blockdev: honor bdrv_try_set_aio_context() context requirements
authorSergio Lopez <slp@redhat.com>
Wed, 8 Jan 2020 14:31:34 +0000 (15:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 27 Jan 2020 16:19:53 +0000 (17:19 +0100)
commit3ea67e08832775a28d0bd2795f01bc77e7ea1512
tree201df0dd65058b813defd5fe10b98491ba420306
parent5b7bfe515ecbd584b40ff6e41d2fd8b37c7d5139
blockdev: honor bdrv_try_set_aio_context() context requirements

bdrv_try_set_aio_context() requires that the old context is held, and
the new context is not held. Fix all the occurrences where it's not
done this way.

Suggested-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Sergio Lopez <slp@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c