OSDN Git Service

file-posix: Avoid aio_worker() for QEMU_AIO_IOCTL
authorKevin Wolf <kwolf@redhat.com>
Wed, 31 Oct 2018 10:30:42 +0000 (11:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Dec 2018 10:54:49 +0000 (11:54 +0100)
commit0342567115feaf24bafcb25be903a9d732ac78ca
treeb0a5f8f470bf61961495426a9d81877528adff52
parent2f3a7ab39bec4ba8022dc4d42ea641165b004e3e
file-posix: Avoid aio_worker() for QEMU_AIO_IOCTL

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.

This was the last user of aio_worker(), so the function goes away now.

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