diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2026-07-29 13:33:45 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-08-13 12:19:27 +0200 |
| commit | ab018b7733bd8f5f998d476528c24924ebeb9959 (patch) | |
| tree | 13a75b73fa4ddf3b44ec814a61048632d5bcbe04 /tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git | |
| parent | f1cebdec9739911cf066e6ce2e02c511f0d124d5 (diff) | |
selftests/epoll: add a regression test for pipe->poll_usage
pipe->poll_usage was added to ensure that edge-triggered epoll consumers
get a wakeup on every write, even if the pipe was already non-empty.
However, none of the existing epoll_wakeup_test cases cover this; the
test suite passes even with WRITE_ONCE(pipe->poll_usage, true) removed.
Add a test that writes twice to a pipe and verifies that epoll_wait with
EPOLLET reports data each time. This covers the pipe-specific per-write
wakeup behavior that edge-triggered consumers depend on.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: https://patch.msgid.link/amnlGZesXu-SUK2H@redhat.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
