I disagree: requiring aio to execute completion in user context means
that we can no longer have quick completion directly from an interrupt
handler to a busy server executing in userland.
That said, it is possible to do the same partial completion as is done
with file descriptors from interrupt context for pages, but it'll be
*really* gross. Freeing pages should be possible from any context IMO.
> > I think the foundamental design mistake that leads to __free_pages to
> > fail from irq, is that we allow an anonymous page to reach count 0 and to be
> > still in the LRU (the count == 0 check in shrink_cache is the other side
> > of the hack too). That's the real BUG, that breaks subtly the freelist
> > semantics
>
> Agreed. We should NEVER free the pages from the irq.
Uhm, what about the network stack?
-ben
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/