Re: [PATCH] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()
From: Pingfan Liu
Date: Mon Jun 03 2019 - 00:10:06 EST
On Sat, Jun 1, 2019 at 1:06 AM John Hubbard <jhubbard@xxxxxxxxxx> wrote:
> On 5/31/19 4:05 AM, Pingfan Liu wrote:
> > On Fri, May 31, 2019 at 7:21 AM John Hubbard <jhubbard@xxxxxxxxxx> wrote:
> >> On 5/30/19 2:47 PM, Ira Weiny wrote:
> >>> On Thu, May 30, 2019 at 06:54:04AM +0800, Pingfan Liu wrote:
> >> [...]
> >> Rather lightly tested...I've compile-tested with CONFIG_CMA and !CONFIG_CMA,
> >> and boot tested with CONFIG_CMA, but could use a second set of eyes on whether
> >> I've added any off-by-one errors, or worse. :)
> > Do you mind I send V2 based on your above patch? Anyway, it is a simple bug fix.
> Sure, that's why I sent it. :) Note that Ira also recommended splitting the
> "nr --> nr_pinned" renaming into a separate patch.
Thanks for your kind help. I will split out nr_pinned to a separate patch.