block: Take AioContext lock in bdrv_open_driver()
commit8dc8a60c9e52fa446a5135180592c0cd4213acfb
authorKevin Wolf <kwolf@redhat.com>
Thu, 25 May 2023 12:47:10 +0000 (25 14:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 30 May 2023 15:29:44 +0000 (30 17:29 +0200)
tree8cfa2a59b33658c1a077326c3b65831a51969c4b
parent9102f2ebdb71809af1c5ee4a4a255927e3dabca4
block: Take AioContext lock in bdrv_open_driver()

bdrv_refresh_total_sectors() and bdrv_refresh_limits() expect to be
called under the AioContext lock of the node. Take the lock.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230525124713.401149-10-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c