]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/rw: simplify io_rw_recycle()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 28 Jan 2025 20:56:16 +0000 (20:56 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jan 2025 22:10:40 +0000 (15:10 -0700)
commitd1fdab8c06791945d9454fb430951533eba9e175
tree98ce7651142c92bf96db47b2714d1e3b137f7cf7
parent0d124578fed92cadeaca47d734da782beacdc1a7
io_uring/rw: simplify io_rw_recycle()

Instead of freeing iovecs in case of IO_URING_F_UNLOCKED in
io_rw_recycle(), leave it be and rely on the core io_uring code to
call io_readv_writev_cleanup() later. This way the iovec will get
recycled and we can clean up io_rw_recycle() and kill
io_rw_iovec_free().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://lore.kernel.org/r/14f83b112eb40078bea18e15d77a4f99fc981a44.1738087204.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c