lkml.org 
[lkml]   [2021]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 03/14] mm/gup: return an error on migration failure
On Mon, Jan 18, 2021 at 11:39:09PM -0500, Pavel Tatashin wrote:
> When migration failure occurs, we still pin pages, which means
> that we may pin CMA movable pages which should never be the case.
>
> Instead return an error without pinning pages when migration failure
> happens.
>
> No need to retry migrating, because migrate_pages() already retries
> 10 times.
>
> Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
> mm/gup.c | 17 +++++++----------
> 1 file changed, 7 insertions(+), 10 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

\
 
 \ /
  Last update: 2021-01-19 19:35    [W:0.360 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site