block/export: only acquire AioContext once for vhost_user_server_stop()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 23 Mar 2023 14:58:53 +0000 (10:58 -0400)
committerKevin Wolf <kwolf@redhat.com>
Mon, 27 Mar 2023 11:46:30 +0000 (13:46 +0200)
commit2957dc40a270cd41a3932f96f0f63ac9c1e3a9be
tree7680cbcc3223a4f789b23254b64b229c3a01aca2
parentbd2cd4a441ded163b62371790876f28a9b834317
block/export: only acquire AioContext once for vhost_user_server_stop()

vhost_user_server_stop() uses AIO_WAIT_WHILE(). AIO_WAIT_WHILE()
requires that AioContext is only acquired once.

Since blk_exp_request_shutdown() already acquires the AioContext it
shouldn't be acquired again in vhost_user_server_stop().

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230323145853.1345527-1-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
util/vhost-user-server.c