]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/poll: unify poll waitqueue entry and list removal
authorJens Axboe <axboe@kernel.dk>
Fri, 5 Dec 2025 17:20:47 +0000 (10:20 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Dec 2025 17:23:28 +0000 (10:23 -0700)
commit55d57b3bcc7efcab812a8179e2dc17d781302997
treef373ea85ab946ecb5bc1f70af87d0b5cce327281
parenta4c694bfc2455e82b7caf6045ca893d123e0ed11
io_uring/poll: unify poll waitqueue entry and list removal

For some cases, the order in which the waitq entry list and head
writing happens is important, for others it doesn't really matter.
But it's somewhat confusing to have them spread out over the file.

Abstract out the nicely documented code in io_pollfree_wake() and
move it into a helper, and use that helper consistently rather than
having other call sites manually do the same thing. While at it,
correct a comment function name as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c