Re: [Qemu-devel] [PATCH 08/12] file-posix: Move read/write operation logic out of aio_worker()

2018-11-15 Thread Kevin Wolf
Am 31.10.2018 um 22:56 hat Kevin Wolf geschrieben: > 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

[Qemu-devel] [PATCH 08/12] file-posix: Move read/write operation logic out of aio_worker()

2018-10-31 Thread Kevin Wolf
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