linux-aio: split processing events function