io_uring: remove drain prealloc checks
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 9 May 2025 11:12:50 +0000 (12:12 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 May 2025 14:01:01 +0000 (08:01 -0600)
commite91e4f692f7993d5d192228c5f8a9a2e12ff5250
tree92780f0b76c3db856fb90ec674081d80c90a5ff1
parent05b334110fdc85f536d7dd573120d573801fb2d1
io_uring: remove drain prealloc checks

Currently io_drain_req() has two steps. The first is fast path checking
sequence numbers. The second is allocations, rechecking and actual
queuing. Further simplify it by removing the first step.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4d06e89ed07611993d7bf89182de2300858379bd.1746788718.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c