Re: [PATCH] pipe: keep per-write wakeups for EPOLLEXCLUSIVE consumers
From: Linus Torvalds
Date: Tue Nov 17 2026 - 11:23:08 EST
On Tue, 17 Nov 2026 at 05:27, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
>
> However, EPOLLEXCLUSIVE breaks this logic. ep_ptable_queue_proc() does
> add_wait_queue_exclusive() if EPOLLEXCLUSIVE is set.
Christ, how I hate epoll. It's a pile of stinking shit.
This literally violates THE WHOLE AND ONLY POINT of exclusive waits.
The rule for an exclusive wait is that it *will* act on the wakeup -
either by consuming the data, or - if it can't consume it all - by
waking up the next waiter itself.
So it's not that "EPOLLEXCLUSIVE breaks this logic".
The logic is fine. EPOLLEXCLUSIVE is broken beyond words.
I really think we need to just actively de-emphasize epoll. Starting
with saying "you can't add EPOLLEXCLUSIVE, because you don't honor
it".
Linus