Re: [PATCH] async poll for 2.5

From: Benjamin LaHaise (bcrl@redhat.com)
Date: Mon Oct 21 2002 - 11:50:56 EST


On Mon, Oct 21, 2002 at 05:58:17PM +0100, Alan Cox wrote:
> I think a chunk of the poll scaling problem is better addressed by
> futexes. If I can say "this futex list for this fd for events X Y and Z"
> I can construct almost all the efficient stuff I need out of the futex
> interfaces, much like doing it with SIGIO setting flags but a lot less
> clocks

I've structured the aio userland structure so that this is possible, just
not implemented yet. There are fields for compatible and incompatible
features, as well as the length of the header. This way, the library can
implement a faster getevents call when futex support is added, but it
always has the option of falling back to the syscall should it not understand
any changes we make to the data structure.

                -ben

-- 
"Do you seek knowledge in time travel?"
-
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/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:54 EST