diff options
author | Emanuele Giuseppe Esposito <eesposit@redhat.com> | 2023-02-03 08:17:28 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-04-25 13:17:28 +0200 |
commit | ab50533b6946b1adeb8eef62c6b16689abcd1e70 (patch) | |
tree | f26f82f922d324d83cb181a9c1176833afd562ba /block/block-gen.h | |
parent | e95200c1c524403e42e8712c7391a8acd5825656 (diff) | |
download | qemu-ab50533b6946b1adeb8eef62c6b16689abcd1e70.zip qemu-ab50533b6946b1adeb8eef62c6b16689abcd1e70.tar.gz qemu-ab50533b6946b1adeb8eef62c6b16689abcd1e70.tar.bz2 |
linux-aio: use LinuxAioState from the running thread
Remove usage of aio_context_acquire by always submitting asynchronous
AIO to the current thread's LinuxAioState.
In order to prevent mistakes from the caller side, avoid passing LinuxAioState
in laio_io_{plug/unplug} and laio_co_submit, and document the functions
to make clear that they work in the current thread's AioContext.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20230203131731.851116-2-eesposit@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/block-gen.h')
0 files changed, 0 insertions, 0 deletions