Files
linux-stable-mirror/include/uapi/linux
Jens Axboe 9aeb68337a io_uring: get rid of remap_pfn_range() for mapping rings/sqes
Commit 3ab1db3c60 upstream.

Rather than use remap_pfn_range() for this and manually free later,
switch to using vm_insert_pages() and have it Just Work.

If possible, allocate a single compound page that covers the range that
is needed. If that works, then we can just use page_address() on that
page. If we fail to get a compound page, allocate single pages and use
vmap() to map them into the kernel virtual address space.

This just covers the rings/sqes, the other remaining user of the mmap
remap_pfn_range() user will be converted separately. Once that is done,
we can kill the old alloc/free code.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-28 21:58:53 +01:00
..
2022-09-15 09:08:09 +02:00
2024-09-12 11:10:30 +02:00
2023-11-02 09:35:28 +01:00
2022-09-20 09:13:38 +02:00
2022-09-29 18:43:04 +02:00
2024-04-27 17:07:11 +02:00
2022-09-20 09:13:38 +02:00
2024-10-17 15:21:27 +02:00
2023-09-13 09:42:53 +02:00
2022-09-27 17:29:09 -07:00