]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
file-posix: Avoid aio_worker() for QEMU_AIO_WRITE_ZEROES
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)
commit7154d8ae66c75c97b08c8f1c80dd6f46f0dbffca
treede94d3931f9fcdc50e73686fb90343c735ff47d8
parent58a209c43747c311ceb6f6a6f3e5904b354efce2
file-posix: Avoid aio_worker() for QEMU_AIO_WRITE_ZEROES

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