io_uring: add new helpers for posting overflows
authorJens Axboe <axboe@kernel.dk>
Fri, 16 May 2025 19:39:32 +0000 (13:39 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 May 2025 00:47:19 +0000 (18:47 -0600)
commitf660fd2ca15a3743f65f6110ae60d5b80500d856
tree9c68af6d3cb340bb0c90bae66c86cf1aa3da0735
parentc80bdb1c55719cd6308d648a7920272a3be09e34
io_uring: add new helpers for posting overflows

Add two helpers, one for posting overflows for lockless_cq rings, and
one for non-lockless_cq rings. The former can allocate sanely with
GFP_KERNEL, but needs to grab the completion lock for posting, while the
latter must do non-sleeping allocs as it already holds the completion
lock.

While at it, mark the overflow handling functions as __cold as well, as
they should not generally be called during normal operations of the
ring.

Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c