Skip to content

Move away from remap_pfn_range()

Jens Axboe io-uring 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 2 repliesIn review
  2. v210 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Simplify references on compound pages (Johannes)
- Fix hunk of one patch being wrong (Jeff)
- Fix typo for !CONFIG_MMU (me)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mm: add nommu variant of vm_insert_pages()mm/nommu.c+7 -00 replies
2/11io_uring: get rid of remap_pfn_range() for mapping rings/sqesio_uring/io_uring.c io_uring/io_uring.h+130 -82 replies
3/11io_uring: use vmap() for ring mappingio_uring/io_uring.c+9 -290 replies
4/11io_uring: unify io_pin_pages()io_uring/io_uring.c io_uring/rsrc.c+42 -550 replies
5/11io_uring/kbuf: get rid of lower BGID listsinclude/linux/io_uring_types.h io_uring/io_uring.c io_uring/kbuf.c+8 -650 replies
6/11io_uring/kbuf: get rid of bl->is_readyio_uring/kbuf.c io_uring/kbuf.h+0 -100 replies
7/11io_uring/kbuf: vmap pinned buffer ringio_uring/kbuf.c+15 -240 replies
8/11io_uring/kbuf: protect io_buffer_list teardown with a referenceio_uring/kbuf.c io_uring/kbuf.h+13 -40 replies
9/11io_uring/kbuf: use vm_insert_pages() for mmap'ed pbuf ringinclude/linux/io_uring_types.h io_uring/io_uring.c io_uring/io_uring.h +2 more+85 -1710 replies
10/11io_uring: use unpin_user_pages() where appropriateio_uring/io_uring.c io_uring/kbuf.c+3 -60 replies
11/11io_uring: move mapping/allocation helpers to a separate fileio_uring/Makefile io_uring/io_uring.c io_uring/io_uring.h +4 more+364 -3320 replies

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchJohannes Weiner
1/11A-b
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHSET v3 0/11] Move away from remap_pfn_range()

Hi,

This series switches both the ring, sqes, and kbuf side away from using remap_pfn_range().

Patch 1 is just a prep patch, and patches 2-3 add ring support, and patch 4 just unifies some identical code.

Patches 5-7 cleanup some kbuf side code, and patch 8 prepares buffer lists to be reference counted, and then patch 9 can finally switch kbuf to also use the nicer vm_insert_pages(). Patch 10 is a cleanup, and patch 11 moves the alloc/pin/map etc code into a separate file.

With this, no more remap_pfn_range(), and no more manual cleanup of having used it.

Changes since v2:
- Simplify references on compound pages (Johannes)
- Fix hunk of one patch being wrong (Jeff)
- Fix typo for !CONFIG_MMU (me)

 include/linux/io_uring_types.h |   4 -
 io_uring/Makefile              |   3 +-
 io_uring/io_uring.c            | 246 +-----------------------
 io_uring/io_uring.h            |   5 -
 io_uring/kbuf.c                | 291 ++++++++--------------------
 io_uring/kbuf.h                |  11 +-
 io_uring/memmap.c              | 333 +++++++++++++++++++++++++++++++++
 io_uring/memmap.h              |  25 +++
 io_uring/rsrc.c                |  37 +---
 mm/nommu.c                     |   7 +
 10 files changed, 467 insertions(+), 495 deletions(-)
Signature · 1 line
Jens Axboe