io_uring: split alloc and add of overflow
authorJens Axboe <axboe@kernel.dk>
Fri, 16 May 2025 15:39:14 +0000 (09:39 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 May 2025 00:46:50 +0000 (18:46 -0600)
commit10f466abc404443cb72ab3384f297345ac7415e1
treef6116e1489f557ce1881ae74714e65ed86ed2d90
parent5288b9e28f8a6f464746ddabcf9bf49d1323acfc
io_uring: split alloc and add of overflow

Add a new helper, io_alloc_ocqe(), that simply allocates and fills an
overflow entry. Then it can get done outside of the locking section,
and hence use more appropriate gfp_t allocation flags rather than always
default to GFP_ATOMIC.

Inspired by a previous series from Pavel:

https://lore.kernel.org/io-uring/cover.1747209332.git.asml.silence@gmail.com/

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