Commit a8edbb42 authored by Chenliang Li's avatar Chenliang Li Committed by Jens Axboe
Browse files

io_uring/rsrc: enable multi-hugepage buffer coalescing



Add support for checking and coalescing multi-hugepage-backed fixed
buffers. The coalescing optimizes both time and space consumption caused
by mapping and storing multi-hugepage fixed buffers.

A coalescable multi-hugepage buffer should fully cover its folios
(except potentially the first and last one), and these folios should
have the same size. These requirements are for easier processing later,
also we need same size'd chunks in io_import_fixed for fast iov_iter
adjust.

Signed-off-by: default avatarChenliang Li <cliang01.li@samsung.com>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20240731090133.4106-3-cliang01.li@samsung.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3d6106ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment