Commit de3b9e2
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: c4d0ac1 ("io_uring/memmap: optimise single folio regions")
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/cb83e053f318857068447d40c95becebcd8aeced.1733689833.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>1 parent 2e6406a commit de3b9e2
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | 678 | | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | 679 | | |
| 680 | + | |
686 | 681 | | |
687 | 682 | | |
688 | 683 | | |
| |||
750 | 745 | | |
751 | 746 | | |
752 | 747 | | |
753 | | - | |
754 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
755 | 752 | | |
756 | 753 | | |
757 | 754 | | |
| |||
0 commit comments