]> git.baikalelectronics.ru Git - kernel.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)
commitd71356d95fd2620a10c3b3f51fb868ea6fef0e19
treef65b101f714ea996a9ca7c366f3cf8084fbf8cad
parentddded8efc5f9b5cb4fae9e943d3e6e3a33f8dcfd
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