[lkml]   [2019]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/3] Add gup fast + longterm and use it in HFI1
From: Ira Weiny <>

NOTE: This series depends on my clean up patch to remove the write parameter
from gup_fast_permitted()[1]

HFI1 uses get_user_pages_fast() due to it performance advantages. Like RDMA,
HFI1 pages can be held for a significant time. But get_user_pages_fast() does
not protect against mapping of FS DAX pages.

Introduce a get_user_pages_fast_longterm() which retains the performance while
also adding the FS DAX checks. XDP has also shown interest in using this


Ira Weiny (3):
mm/gup: Change "write" parameter to flags
mm/gup: Introduce get_user_pages_fast_longterm()
IB/HFI1: Use new get_user_pages_fast_longterm()

drivers/infiniband/hw/hfi1/user_pages.c | 2 +-
include/linux/mm.h | 8 ++
mm/gup.c | 152 ++++++++++++++++--------
3 files changed, 114 insertions(+), 48 deletions(-)


 \ /
  Last update: 2019-02-11 21:18    [W:0.113 / U:0.856 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site