[RFC PATCH v 0/1] pipe: only enable the extra wake_up(rd_wait) for edge-triggered consumers
From: Oleg Nesterov
Date: Mon Jul 27 2026 - 08:30:08 EST
Again, I am not sure this makes a lot of sense. But I'd like to know
your opinion.
Plus I'd like to have the review from sashiko ;)
With or without this patch we need to update the comments to document
that io_uring depends on ->pipe_usage too. And probably rename it to
(say) ->et_poll.
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c passes.
See also the test-cases in 1/1, they pass with this patch. And fail if
I remove WRITE_ONCE(pipe->poll_usage, true) in pipe_poll().
Oleg.
---
fs/pipe.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)