]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
file-posix: Move read/write operation logic out of aio_worker()
authorKevin Wolf <kwolf@redhat.com>
Wed, 31 Oct 2018 08:43:17 +0000 (09:43 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Dec 2018 10:52:41 +0000 (11:52 +0100)
commit54c7ca1b8135e728b70320418d6424ad78cc4629
tree62cbf55264ee341986f2bba6d9a62de738566f21
parent06dc9bd57182eb1a09cd0f7b1cb145937ed4e618
file-posix: Move read/write operation logic out of aio_worker()

aio_worker() for reads and writes isn't boring enough yet. It still does
some postprocessing for handling short reads and turning the result into
the right return value.

However, there is no reason why handle_aiocb_rw() couldn't do the same,
and even without duplicating code between the read and write path. So
move the code there.

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