]> git.karo-electronics.de Git - linux-beck.git/commit
pipe: use event aware wakeups
authorDavide Libenzi <davidel@xmailserver.org>
Thu, 13 Jan 2011 01:00:25 +0000 (17:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:15 +0000 (08:03 -0800)
commite462c448fdc89252d631b26ff0ed4f7ad6fe8ed2
treef65b101f714ea996a9ca7c366f3cf8084fbf8cad
parent5f829e405ec4e96f711165a4a7b55c271d4363e2
pipe: use event aware wakeups

Send the events the wakeup refers to, so that epoll, and even the new poll
code in fs/select.c can avoid wakeups if the events do not match the
requested set.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/pipe.c