Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1862171pxu; Sun, 13 Dec 2020 05:55:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZtYQwILJnRrAfG4xXxqmX4esBKZytxKavegr1WdQDx3g2/awd/CW/r7Wa2VWB+pmzimd1 X-Received: by 2002:a17:906:1302:: with SMTP id w2mr19540578ejb.413.1607867705888; Sun, 13 Dec 2020 05:55:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607867705; cv=none; d=google.com; s=arc-20160816; b=cOyGqQFnSUe6ZIZHJthyO1V643bRg263Lpdt4vb7DsDH1PYcg49ufDVBZVt6WKfruN 3+f1+/NUDWQkumc47dx2xzMblMBPeIFZ68Bie7WduYsbIeJc2Y2nDXGBwfp50TENAc59 APmBYWUzNawbBO1O2f9hND1nwjXc60lWYHPspb/3vBGvNEjkTZeGr0THvCoyWleIlguM X8Js3byXtcGmgmp9mPsdxloiT8Y9KdQjTRKavtjtHDmGNR+jRsxuYv1QtRfGroKFfFHD 6NG0dOOozFOh6YV6HdGZxz8S/Yf+UsEFTCsVK06hZLBGJFlXWOO5Q9061Dt2kAJPfYlK qa4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GE26nCzQ9HfpnpJ/4kq8ZcBVZOfOrwVSu+Matl1W4V0=; b=xHfWXDS1Ezw3tXgClZ69lTeisik1IB/e84WM8hqAxxJ77wwzIqIkML3ijIv8VjWkxE nAE9rfkS/m7Hl5CY2BcKnIjlwMBxwfMEGKWlT1J+kGsz7iMgm0fzFYPe+2wc1o868Xzu sf5j5rYTWuM7XHsqft6fA1oybKkFL9LfIqatucfT3oGveB7/CZFjxvjurxD0LZ3BL+S1 rk/t4HDho+zAHMm4gkIIlFHLBNaAkW8kOK6/wCR2+kOPQUy0OTtMQlq9Smdwoq1TfuQ5 CQAkbl0DObFOpFzf8PBsESwTWWRy1Os+61NiRqXiI+6jwBr7Wff5T96+jYNg2aYdIMsu UhZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hnjxYUKJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si7943577ejw.623.2020.12.13.05.54.43; Sun, 13 Dec 2020 05:55:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hnjxYUKJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437547AbgLLAIa (ORCPT + 99 others); Fri, 11 Dec 2020 19:08:30 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:2087 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437470AbgLLAH6 (ORCPT ); Fri, 11 Dec 2020 19:07:58 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 11 Dec 2020 16:07:18 -0800 Received: from [10.2.58.108] (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 12 Dec 2020 00:07:09 +0000 Subject: Re: [PATCH v3 5/6] mm/gup: migrate pinned pages out of movable zone To: Pavel Tatashin , David Hildenbrand CC: Jason Gunthorpe , LKML , linux-mm , Andrew Morton , Vlastimil Babka , Michal Hocko , "Oscar Salvador" , Dan Williams , "Sasha Levin" , Tyler Hicks , "Joonsoo Kim" , , Steven Rostedt , Ingo Molnar , Peter Zijlstra , Mel Gorman , Matthew Wilcox , David Rientjes , "Linux Doc Mailing List" References: <447A41F3-EB94-4DA4-8B98-038B127774A5@redhat.com> From: John Hubbard Message-ID: <9c201f8c-6266-ed03-e419-12edd8148fdb@nvidia.com> Date: Fri, 11 Dec 2020 16:07:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1607731638; bh=GE26nCzQ9HfpnpJ/4kq8ZcBVZOfOrwVSu+Matl1W4V0=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=hnjxYUKJZY/IWx8fOrko9qKAIHQ0lvPgjIe708zMbhQ6DNTfpnzpmlWTt4TFi+OqI /RbazPTJrJQWAAKMicUsQipszn5aj1fjHGUnAvfxMbW4D+7GDZbmvKuV4Q5EV9ne8Z krbF7LtVNO9bHbo77xY4AH77SzliappiRIxnAfwp77lpA0axIpo2+8uEYQyatuvCwC SAf0PNLh0OHqGujN6DbP1boYVxOKfwNWRBhYHRze9xE5sarVU1w91K/FCOfklEMyYh YAklh8SSjyngvzKoyizVo/TD1Jlct4F3UcWXvXSFCJ2Zkai9VEDXpFz9eVEFVzkzIp 4wjv2KxnqmZcw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/20 3:00 PM, Pavel Tatashin wrote: >> I guess revert what we did (unpin) and return an error. The interesting question is what can make migration/isolation fail > > OK. I will make the necessary changes. Let's handle errors properly. > Whatever the cause for the error, we will know it when it happens, and > when error is returned. I think I will add a 10-time retry instead of > the infinite retry that we currently have. The 10-times retry we > currently have during the hot-remove path. It occurs to me that maybe the pre-existing infinite loop shouldn't be there at all? Would it be better to let the callers retry? Obviously that would be a separate patch and I'm not sure it's safe to make that change, but the current loop seems buried maybe too far down. Thoughts, anyone? thanks, -- John Hubbard NVIDIA