Skip to content

remove nopage

[email protected] alsa-devel kvm linux-fbdev linux-ia64 linux-mm linux-scsi lkml 1 version Applied

Status from this message: I applied this to ALSA HG tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 of 18 patches 24 repliesApplied

17 of 18 patches are in this archive. The cover letter announces 18.

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/18ia64: ia32 nopagearch/ia64/ia32/binfmt_elf32.c+15 -190 replies
2/18relay: nopagekernel/relay.c+9 -150 replies
3/18drm: nopagedrivers/char/drm/drm_vm.c+61 -702 replies
4/18uio: nopagedrivers/uio/uio.c+6 -84 replies
5/18kvm: nopagedrivers/kvm/kvm_main.c+13 -251 reply
6/18ieee1394: nopagedrivers/ieee1394/dma.c+17 -226 replies
7/18v4l: nopagedrivers/media/video/videobuf-dma-sg.c+8 -126 replies
8/18fb: defio nopageDocumentation/fb/deferred_io.txt drivers/video/fb_defio.c+11 -120 replies
9/18agp: alpha nopagedrivers/char/agp/alpha-agp.c+8 -90 replies
10/18sg: nopagedrivers/scsi/sg.c+11 -121 reply
11/18ib: nopagedrivers/infiniband/hw/ipath/ipath_debug.h drivers/infiniband/hw/ipath/ipath_file_ops.c+12 -210 replies
12/18usb: mon nopagedrivers/usb/mon/mon_bin.c+7 -92 replies
13/18alsa: nopagesound/core/pcm_native.c+25 -341 reply
14/18oss: via nopagesound/oss/via82cxxx_audio.c+9 -190 replies
15/18alsa: usx2y nopagesound/usb/usx2y/usX2Yhwdep.c sound/usb/usx2y/usx2yhwdeppcm.c+14 -261 reply
16/18mm: special mapping nopagemm/memory.c mm/mmap.c+16 -130 replies
17/18mm: remove nopageDocumentation/feature-removal-schedule.txt Documentation/filesystems/Locking drivers/media/video/vino.c +5 more+10 -422 replies

Reviews trailers per patch

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

PatchHans J Koch
1/18
2/18
3/18
4/18A-b
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18

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

Read the v1 thread

Cover letter [patch 00/18] remove nopage

This patchset removes the 'nopage' from the tree.

I've gone through all the drivers and converted them to use fault as best I can. When using fault, I've also tried to use vmf->pgoff rather than the virtual address to index the content (which is preferred). Mostly it has been OK, but DRM is a bit difficult, as it seems to use vma->vm_pgoff as a 2nd dimension of addressing, so it remains unconverted.

I've also done some other things while going through at the code...

Converted incorrect OOM returns to SIGBUS. OOM should only be returned as a result of a memory allocation failure. We will actually want the fault path OOM handling to be unified with the normal OOM killing path in future, and so OOMing when we should be SIGBUSing means the box will panic if panic_on_oom is set, or it will oom-kill random processes before retrying the fault, etc. SIGBUS means something like "physical address (ie. after translation) does not exist", which is appropriate AFAIKS in all cases I've converted.

Got rid of some bogus looking "disallow mremap" checks that just check for address > vma->vm_end. Presumably this is supposed to prevent an mremap expanding the mapping outside the limit of the underlying resource, but actually mremap will update vma->vm_end, and anyway this condition is already checked in the page fault code. Others seem to get this right by checking the underlying resource itself. Others don't seem to even care.

There looks like a fair number of corruption / security problems with mremap, so I've done an audit of the tree and tried to plug them.