block-backend: process zoned requests in the current AioContext
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 12 Sep 2023 23:10:36 +0000 (19:10 -0400)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Sep 2023 15:46:01 +0000 (17:46 +0200)
commit0f86afde66ea0d9a383878223ac07bd111c69692
treef6150ca5e6f50c94a14b7ab336ee52450c96bc5a
parent46eb6e861b0a622541593ea6db85e7c971dadb28
block-backend: process zoned requests in the current AioContext

Process zoned requests in the current thread's AioContext instead of in
the BlockBackend's AioContext.

There is no need to use the BlockBackend's AioContext thanks to CoMutex
bs->wps->colock, which protects zone metadata.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230912231037.826804-5-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c