Re: [PATCH 3/7] eventpoll: don't claim real exclusivity for EPOLLEXCLUSIVE

From: Oleg Nesterov

Date: Wed Nov 25 2026 - 06:56:05 EST


On 11/24, Linus Torvalds wrote:
>
> --- a/fs/eventpoll.c
> +++ b/fs/eventpoll.c
> @@ -1626,9 +1626,8 @@ static void ep_ptable_queue_proc(struct file
> *file, wait_queue_head_t *whead,

FYI, none of these patches can be applied, both patch and git-am complain
"patch: **** malformed patch at line 34: *file, wait_queue_head_t *whead,"

> pwq->whead = whead;
> pwq->base = epi;
> if (epi->event.events & EPOLLEXCLUSIVE)
> - add_wait_queue_exclusive(whead, &pwq->wait);
> - else
> - add_wait_queue(whead, &pwq->wait);
> + pwq->wait.flags |= WQ_FLAG_POLL_EXCLUSIVE;
> + add_wait_queue(whead, &pwq->wait);

Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>