]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/cmd: add iovec cache for commands
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 21 Mar 2025 18:04:33 +0000 (18:04 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Mar 2025 18:52:15 +0000 (12:52 -0600)
commit3a4689ac109f18f23ea0d0c1c79e055142796858
tree35395b11bf349968cff38ede45b96f7b25a446de
parent5f14404bfa245a156915ee44c827edc56655b067
io_uring/cmd: add iovec cache for commands

Add iou_vec to commands and wire caching for it, but don't expose it to
users just yet. We need the vec cleared on initial alloc, but since
we can't place it at the beginning at the moment, zero the entire
async_data. It's cached, and the performance effects only the initial
allocation, and it might be not a bad idea since we're exposing those
bits to outside drivers.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/c0f2145b75791bc6106eb4e72add2cf6a2c72a7a.1742579999.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/opdef.c
io_uring/uring_cmd.c
io_uring/uring_cmd.h