[PATCH 0/5] poll_wait: add mb() to fix theoretical race between waitqueue_active() and .poll()

Oleg Nesterov
2025-01-07T16:27:27Z

Linus,

I misread fs/eventpoll.c, it has the same problem. And more __pollwait()-like
functions, for example p9_pollwait(). So 1/5 adds mb() into poll_wait(), not
into __pollwait().

WangYuli, after 1/5 we can reconsider your patch.

Oleg.
---

include/linux/poll.h | 26 ++++++++++++--------------
include/net/sock.h | 17 +++++++----------
io_uring/io_uring.c | 9 ++++-----
3 files changed, 23 insertions(+), 29 deletions(-)