io_uring/poll: cleanup apoll freeing
authorJens Axboe <axboe@kernel.dk>
Fri, 11 Jul 2025 21:41:02 +0000 (15:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 12 Jul 2025 21:03:05 +0000 (15:03 -0600)
commit6e4098382b667e6ef485fbf09cd7ddd2e54fe6aa
tree497e2a128e6f80db804e1867aafcca35d12a3bfd
parent6a8afb9fff6478e7944794f089181e93df1c728a
io_uring/poll: cleanup apoll freeing

No point having REQ_F_POLLED in both IO_REQ_CLEAN_FLAGS and in
IO_REQ_CLEAN_SLOW_FLAGS, and having both io_free_batch_list() and then
io_clean_op() check for it and clean it.

Move REQ_F_POLLED to IO_REQ_CLEAN_SLOW_FLAGS and drop it from
IO_REQ_CLEAN_FLAGS, and have only io_free_batch_list() do the check and
freeing.

Link: https://lore.kernel.org/io-uring/20250712000344.1579663-2-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c