diff options
author | 2024-12-08 21:46:01 +0000 | |
---|---|---|
committer | 2024-12-23 08:20:31 -0700 | |
commit | de3b9e2e48190be28473ea84c384bc64931facf7 (patch) | |
tree | 17e58dadd7e6ecabb0075229d3d8142fbdeab4aa /scripts/generate_rust_analyzer.py | |
parent | io_uring: clean up io_prep_rw_setup() (diff) | |
download | wireguard-linux-de3b9e2e48190be28473ea84c384bc64931facf7.tar.xz wireguard-linux-de3b9e2e48190be28473ea84c384bc64931facf7.zip |
io_uring: don't vmap single page regions
When io_check_coalesce_buffer() meets a single page buffer it bails out
and tells that it can be coalesced. That's fine for registered buffers
as io_coalesce_buffer() wouldn't change anything, but the region code
now uses the function to decided on whether to vmap the buffer or not.
Report that a single page buffer is trivially coalescable and let
io_sqe_buffer_register() to filter them.
Fixes: c4d0ac1c1567 ("io_uring/memmap: optimise single folio regions")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cb83e053f318857068447d40c95becebcd8aeced.1733689833.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions