That part looks fine, no need to change it. What tripped me up was this:
(restarting the syscall isn't really an option because other AIO could
have been already submitted by the same io_submit syscall)
To me, that sounded like the result would be seen by io_submit instead
of io_getevents.
Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html