]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring: deduplicate wakeup handling
authorJens Axboe <axboe@kernel.dk>
Tue, 15 Jul 2025 18:20:06 +0000 (12:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jul 2025 18:20:06 +0000 (12:20 -0600)
commit8723c146ad4ca17d340213f3676ce1829668b79b
treeb4834cd583a879c6ff442b435fccf310f9951ddc
parentb1915b18e1d00eb4e8babcdc2ca3a64b43e20e9a
io_uring: deduplicate wakeup handling

Both io_poll_wq_wake() and io_cqring_wake() contain the exact same code,
and most of the comment in the latter applies equally to both.

Move the test and wakeup handling into a basic helper that they can both
use, and move part of the comment that applies generically to this new
helper.

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