Re: [PATCH] pipe: keep per-write wakeups for EPOLLEXCLUSIVE consumers

From: Linus Torvalds

Date: Tue Nov 17 2026 - 14:12:39 EST


On Tue, 17 Nov 2026 at 09:58, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
>
> On 11/17, Linus Torvalds wrote:
> >
> > So what we could do is to just make the pipe code open-code its own
> > wait event logic, and add its waiters at the head.
>
> perhaps... and we already have WQ_FLAG_PRIORITY, but we can't re-use it
> without more changes...

Ok, I looked at this, and it gets ugly, and I'd worry about the
unfairness. Yes, the unfairness probably helps throughput, but every
time we've doen that, it ends up being a starvation issue for some
case.

I think "ignore it - bad epoll actors get to use both broken pieces"
issue unless somebody comes up with something nicer.

Linus