]> git.proxmox.com Git - mirror_qemu.git/commit
block: Take AioContext lock for bdrv_append() more consistently
authorKevin Wolf <kwolf@redhat.com>
Mon, 11 Sep 2023 09:46:03 +0000 (11:46 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Sep 2023 15:46:00 +0000 (17:46 +0200)
commit487b91870face8973e78d82cd312a77d8f9f5363
treefb691b775b4b96633b38be17cdeff34595c404a7
parentedcce17b1590d0e785d303d31a7b08182a1bdb1e
block: Take AioContext lock for bdrv_append() more consistently

The documentation for bdrv_append() says that the caller must hold the
AioContext lock for bs_top. Change all callers to actually adhere to the
contract.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230911094620.45040-5-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/unit/test-bdrv-drain.c
tests/unit/test-bdrv-graph-mod.c
tests/unit/test-block-iothread.c