file-posix: Avoid aio_worker() for QEMU_AIO_TRUNCATE
authorKevin Wolf <kwolf@redhat.com>
Thu, 25 Oct 2018 13:18:58 +0000 (14:18 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Dec 2018 10:52:41 +0000 (11:52 +0100)
commit29cb4c01e7b38589fa4fe3f9ea82f69dc2df3051
treefdd8f38e0215ebeb49ce3620a88f50ed3d34d45d
parent5d5de250056b0972cde2e88133db702960a32b72
file-posix: Avoid aio_worker() for QEMU_AIO_TRUNCATE

aio_worker() doesn't add anything interesting, it's only a useless
indirection. Call the handler function directly instead.

As we know that this handler function is only called from coroutine
context and the coroutine stays around until the worker thread finishes,
we can keep RawPosixAIOData on the stack.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c