On Thu, Jun 28, 2018 at 4:37 PM Al Viro <[email protected]> wrote:
>
> You underestimate the nastiness of that thing (and for the record, I'm
> a lot *less* fond of AIO than you are, what with having had to read that
> nest of horrors lately). It does not "copy the data to userland"; what it
> does instead is copying into an array of pages it keeps, right from
> IO completion callback. I
Ugh.
Oh well. I'd be perfectly happy to have somebody re-write and
re-architect the aio code entirely. Much rather than that the
->poll() code. Because I know which one I think is well-desiged with a
nice usable interface, and which one is a pile of shit.
In the meantime, if AIO wants to do poll() in some irq callback, may I
suggest just using workqueues.
Linus