Re: Regression: epoll edge-triggered (EPOLLET) for pipes/FIFOs

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2020-10-12 19:29:02
Also in
keyrings, linux-fsdevel, lkml
Reply to
Linus Torvalds, 2020-10-12
On Mon, Oct 12, 2020 at 12:25 PM Linus Torvalds
[off-list ref] wrote:
Now, the old pipe behavior was that it would wake up writers whether
they needed it or not [..]
That "writers" should be "readers", of course.

Although yes, that commit changed it for both readers and writers: if
the pipe was readable from before, then a writer adding new data to it
doesn't make it "more readable". Similarly, if a pipe was writable
before, and a reader made even more room in it, the pipe didn't get
"more writable".

So that commit removes the pointless extra wakeup calls that don't
actually make any sense (and that gave incorrect edges to the some
EPOLL case that saw an edge that didn't actually exist).

              Linus
Thread (9 messages) 9 messages, 3 authors, last reply 2020-10-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help