Skip to content

get_user_pages() cleanup

Jan Kara dri-devel linux-ia64 linux-media linux-mm linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cris: Convert cryptocop to use get_user_pages_fast()arch/cris/arch-v32/drivers/cryptocop.c+10 -252 replies
2/7ia64: Use get_user_pages_fast() in err_inject.carch/ia64/kernel/err_inject.c+1 -20 replies
3/7drm: Convert via driver to use get_user_pages_fast()drivers/gpu/drm/via/via_dmablit.c+4 -80 replies
4/7fsl_hypervisor: Convert ioctl_memcpy() to use get_user_pages_fast()drivers/virt/fsl_hypervisor.c+2 -70 replies
5/7IB/mthca: Convert mthca_map_user_db() to use get_user_pages_fast()drivers/infiniband/hw/mthca/mthca_memfree.c+1 -20 replies
6/7drm/i915: Convert to use get_user_page_unlocked()drivers/gpu/drm/i915/i915_gem_userptr.c+6 -70 replies
7/7ivtv: Convert to get_user_pages_unlocked()drivers/media/pci/ivtv/ivtv-yuv.c+6 -60 replies

Reviews trailers per patch

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

PatchJesper Nilsson
1/7A-b
2/7
3/7
4/7
5/7
6/7
7/7

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 0/7] get_user_pages() cleanup

From: Jan Kara <[email protected]>

Hello,

Now when the usage of get_user_pages() in media drivers got cleaned up, here comes a series which removes knowledge about mmap_sem from a couple of other drivers. Patches are trivial and standalone but please check, they are only compile tested. If you are OK with them, either take them through your respective trees or ack them and I can take care of pushing them to Linus (probably through mm tree). Thanks.

After these patches there are some 12 call sites of get_user_pages() outside of core code (mostly infiniband and RDMA). So we are slowly getting to the goal of removing knowledge about page fault locking from drivers which will consequently allow us to change the locking rules with reasonable effort.

Honza

CC Jesper Nilsson <[email protected]>
CC Mikael Starvik <[email protected]>
CC Tony Luck <[email protected]>
CC David Airlie <[email protected]>
CC Timur Tabi <[email protected]>
CC Roland Dreier <[email protected]>
CC Daniel Vetter <[email protected]>
CC David Airlie <[email protected]>
CC Andy Walls <[email protected]>
CC Mauro Carvalho Chehab <[email protected]>