Davide Libenzi d47de16c72 fix epoll single pass code and add wait-exclusive flag
Fixes the epoll single pass code.  During the unlocked event delivery (to
userspace) code, the poll callback can re-issue new events, and we must
receive them correctly.  Since we loop in a lockless fashion, we want to be
O(nready), and we don't want to flash on/off the spinlock for every event, we
have the poll callback to use a secondary list to queue events while we're
inside the event delivery loop.  The rw_semaphore has been turned into a
mutex.  This patch also adds the wait-exclusive flag, as suggested by Davi
Arnaut.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-15 08:53:59 -07:00
..
2007-05-09 12:30:55 -07:00
2007-05-11 08:29:32 -07:00
2007-05-08 11:14:59 -07:00
2007-05-09 12:30:55 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:14:57 -07:00
2007-05-09 08:58:16 +02:00
2007-05-09 08:58:16 +02:00
2007-05-09 08:57:56 +02:00
2007-05-09 17:58:01 -04:00
2007-05-12 10:55:39 -07:00
2007-05-10 09:26:52 -07:00
2007-05-08 11:14:59 -07:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:09 -07:00
2007-05-09 08:58:15 +02:00
2007-05-07 12:12:58 -07:00
2007-05-09 06:44:57 +02:00
2007-05-11 08:29:36 -07:00
2007-05-08 20:10:00 -07:00
2007-05-09 07:10:02 +02:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:04 -07:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:18 -07:00