OSDN Git Service

file-posix: Avoid aio_worker() for QEMU_AIO_COPY_RANGE
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)
commit58a209c43747c311ceb6f6a6f3e5904b354efce2
tree739f21c5907fa00449608bce86a016d3bc60c8dd
parent29cb4c01e7b38589fa4fe3f9ea82f69dc2df3051
file-posix: Avoid aio_worker() for QEMU_AIO_COPY_RANGE

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