The patch titled Subject: ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast-v3 has been added to the -mm tree. Its filename is ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast-v3.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast-v3.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast-v3.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Ira Weiny <ira.weiny@xxxxxxxxx> Subject: ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast-v3 Per Dan Williams: set FOLL_LONGTERM on declaration line Link: http://lkml.kernel.org/r/20190328084422.29911-6-ira.weiny@xxxxxxxxx Link: http://lkml.kernel.org/r/20190328084422.29911-6-ira.weiny@xxxxxxxxx Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx> Cc: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxx> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Cc: Borislav Petkov <bp@xxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Cc: Heiko Carstens <heiko.carstens@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: James Hogan <jhogan@xxxxxxxxxx> Cc: Jason Gunthorpe <jgg@xxxxxxxx> Cc: John Hubbard <jhubbard@xxxxxxxxxx> Cc: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Mike Marshall <hubcap@xxxxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Rich Felker <dalias@xxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/infiniband/hw/hfi1/user_pages.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/infiniband/hw/hfi1/user_pages.c~ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast-v3 +++ a/drivers/infiniband/hw/hfi1/user_pages.c @@ -104,9 +104,7 @@ int hfi1_acquire_user_pages(struct mm_st bool writable, struct page **pages) { int ret; - unsigned int gup_flags = writable ? FOLL_WRITE : 0; - - gup_flags |= FOLL_LONGTERM; + unsigned int gup_flags = FOLL_LONGTERM | (writable ? FOLL_WRITE : 0); ret = get_user_pages_fast(vaddr, npages, gup_flags, pages); if (ret < 0) _ Patches currently in -mm which might be from ira.weiny@xxxxxxxxx are mm-gup-replace-get_user_pages_longterm-with-foll_longterm.patch mm-gup-replace-get_user_pages_longterm-with-foll_longterm-v3.patch mm-gup-change-write-parameter-to-flags-in-fast-walk.patch mm-gup-change-gup-fast-to-use-flags-rather-than-a-write-bool.patch mm-gup-add-foll_longterm-capability-to-gup-fast.patch mm-gup-add-foll_longterm-capability-to-gup-fast-v3.patch ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast.patch ib-hfi1-use-the-new-foll_longterm-flag-to-get_user_pages_fast-v3.patch ib-qib-use-the-new-foll_longterm-flag-to-get_user_pages_fast.patch ib-mthca-use-the-new-foll_longterm-flag-to-get_user_pages_fast.patch