Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp897438iog; Thu, 30 Jun 2022 12:21:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSiI59CAniV9gFQB7PpJ7frXoVleXZfIuYM7a29Trq3ZgqP6544KFctMhlrzFd85mTV3W6 X-Received: by 2002:a17:907:3f84:b0:724:2ec:b474 with SMTP id hr4-20020a1709073f8400b0072402ecb474mr10572919ejc.644.1656616899280; Thu, 30 Jun 2022 12:21:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656616899; cv=pass; d=google.com; s=arc-20160816; b=VX+XrvQf9Qx7qOj2rtkXPAc0eYRpnCZ9llx5Tar1NrSdEzeYskFpM8ZumY+SFY3b88 H3ZUhczknoq+6nOR850z7Sov2CWLDMaPr+i+zS1h8X3elW2Z7AkX21NtrBrF6ZGq/Iyt lSIgBgnID5CucA5oCdKh/LM6t9Loz6ixwugHqTlHZz5lMxV7K36LRLWrifblWSu/rx6L UOi4JDc1f3RfXXBPdJ8f/8kFE360iKi8yrtirOsV/MXLBqLAAOTfINgxuqoBt8tr07KO 9dbr/EZfhjycN+gG2JK4/4Fu2IFxS9hTPlkrQ0x9MiOxpibJiVWDtG3cPL2kor6lWZem 1ORQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=8NPYHSBiZN972ACrXZKFkFLLL/jxJviSlN39x1lUt/k=; b=SGXeees5paUCO/9YRWSS5tqFwMJfI71D3Pzjrc8yZzPQxj+qOdgv1Q4HzRq31kXuNk VOr8zCoucDKKykDRU2fYZnGygjeIg86+H0JdYUjPR+3NdIgKN1RM0pcudhd349v34NhL j4YTY5KovrqPi3YScP9Vf1zhniB5I+2+EcBC/BVk7M0y7G6cCQLWbSHn77j3HPyrQxeb hk2UQVr2rujarUAK/5WHEqMiYETGwpDRqSJpwCS89i4iFKlStcSsbIP7RHRkZy7C+7Hy /gRdnSQotg9XQKU2Qtg3hCj72lSGTRRRGX8wanSvP2/ZCjiEcg8vOqBHcPWF5xUOkU9C XYDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gyAWvohw; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a056402134d00b0043594d2c2cfsi22949242edw.600.2022.06.30.12.21.14; Thu, 30 Jun 2022 12:21:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gyAWvohw; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236777AbiF3TCA (ORCPT + 99 others); Thu, 30 Jun 2022 15:02:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236758AbiF3TB5 (ORCPT ); Thu, 30 Jun 2022 15:01:57 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2064.outbound.protection.outlook.com [40.107.243.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0E2A1EC5E; Thu, 30 Jun 2022 12:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=crCbM8a/xcbcu4iRkfj7uvmN0MXvCtTlW5n7bi7WL5rhhQTdSEJ7vOkro55lbPkmSP4zXn7mmgeJd64zDf1Z7/hUZATT2YZO3hTyAzbTehpDAiYbsRq5oH0vFDTLcx/PplbVXME8UkHNafcslNJRtZmU4pp8r7nl4kqTsSOLc7Om+KHBIyKrA/dRCLQWSfUU4cbqvKQLPAvPA/9Of0p9sv7JRjzfn7mtJedA2JTdMtTDFv/Npo2XEvMZzXcMRi6dZ5BR5nRmeLMtIIlRjlUEKOB1TzwnovdBt2C0NxNUy/ap23e2cRZ0QOu4Elb8IsH+d1BjE31qa2tYfceQQD/G+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8NPYHSBiZN972ACrXZKFkFLLL/jxJviSlN39x1lUt/k=; b=cRBVGn+t/C9U9P64t+hNEd5Sn2SnvaGxGdoLhpARM6mCWIi4ETBuuvkQgMehcmwLoV7atOAKhMGNSOD6MHPWiL7iKs7pCRcEsPmXeJuMP3ci50Xobl3Hr/yRa1uFRRZD/2Aeze+51ywC5oqXupNsjs+mXej+0RUNzzt9NOsOn1D5ukH1RSNcr7rr9+aYU8ZtHroYRcLA74xTEbtKaUs3E3VZPY1xWM7AW/S6LC4gpxmGiFDeRTsGGiyCruY5MxyWM22Y8y7Z+A6ugA34FT+LbWUKYA0AGUxzp5qnsgz7VehE2u1DaZu3Igh3+jDn1YwabT0Z9n73T5WXjp/7iA3Rhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8NPYHSBiZN972ACrXZKFkFLLL/jxJviSlN39x1lUt/k=; b=gyAWvohwyXfknIH3d8Q6W7L0YkZEbZrocqXxVXmRkxBXlYdFsI5uD5yHankxUt5aCAYYKnwN/g4VrhXG9hZH7OqYcGPctitoHwgFkQ7b7s4sHExIakgd/ibbD7c/hOlPKhnJQ+F6HFiF3EXyv6JWkqENyRq77y0RZ0yWzecw95PRFk8a0+8W81+SvIY2AmP+yCz54qUcsUa7RgTL/P7ROjCaw7DzzWGHWUzgKWzRc2pee6DfLpt8i66lC9+g8gMjrFJOfHM7YyCTX71+ttneJCR/GuKUwc18aXDLAbhM0BrGHDvpcxY9qWdBObLckv9B1Te1CFET3Th2XkoQ6001nw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by DM4PR12MB5088.namprd12.prod.outlook.com (2603:10b6:5:38b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15; Thu, 30 Jun 2022 19:01:55 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::28d4:3575:5db:6910]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::28d4:3575:5db:6910%5]) with mapi id 15.20.5395.015; Thu, 30 Jun 2022 19:01:55 +0000 Message-ID: <0183984a-c95f-c92e-629e-775071b5cd23@nvidia.com> Date: Thu, 30 Jun 2022 12:01:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 1/4] mm/gup: Add FOLL_INTERRUPTIBLE Content-Language: en-US To: Peter Xu Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Andrew Morton , David Hildenbrand , "Dr . David Alan Gilbert" , Andrea Arcangeli , Linux MM Mailing List , Sean Christopherson References: <20220622213656.81546-1-peterx@redhat.com> <20220622213656.81546-2-peterx@redhat.com> <16c181d3-09ef-ace4-c910-0a13fc245e48@nvidia.com> <177284f9-416d-c142-a826-e9a497751fca@nvidia.com> <17f9eae0-01bb-4793-201e-16ee267c07f2@nvidia.com> From: John Hubbard In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR20CA0029.namprd20.prod.outlook.com (2603:10b6:a03:1f4::42) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea10d29a-c539-43de-f89a-08da5acb0031 X-MS-TrafficTypeDiagnostic: DM4PR12MB5088:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ST6NcLY0OA6ZPhsSPBZJE94HUfZ8koquPdq+GH/+q+pCm+clH+bbC84lPwqmDoxwjfqPllfvXcNqcnCGyRRxsw7Am4xxqpq+akPXYUGW6pgplSkPUSSV2ydKra/7shT0DTsJVOlD2B8sT2opDdf2y9XAVPqUHubVkeBuIegimWqyiXVCJEz1UaMJAldHzWzn/N6o5DqE0XXEukkdeotbDAxq1LIn+KZskeKSha9Ebmo3Ckood60LaqcGZV4hPWK/sXeRTSry5rTZhazxSMSg0HL8BAod0hmBjRw6hzI6L+7QQkeABK+cGxgw8xS+/80bMbUDAVD9s6o3Aca26lDAm3emcDWq2dmEbVf7QgHG7VxwCuE590swXMzAjlVH8e1FZ6HY6ZMEgDyY9bdTVPoWp921jmoKAIu1na+lSyvbnD6LGhied8arUSpeEbiV/fh+Vax0QXKN4yOfHQX5fDM+u07AGoZhMGDRlQ0JUydQ/AK56FLAVTiUMM2GCwejaWTcF3fERkn5L+T64v1YThfUholh+Dhneg83nHzlnjJdNT/TRdHpR3XyEnoYMm2EQVGAOoXUYxHc5db3iC1mceFMKrBi0j58oWe6zK5aUuATuWz9CzY0LnEWpWPWX7vR+GQ8IFZXWvfjecmPamvU4+nqOXBoVeTxGbDmMbScVM7GuIHZL7C7y+1t3ftEqATol2lvXe6cy/jZE2wuaFSw3pIi7nhRsolgokjHX1LdHMId2h/cxIgAxdnCOdk4qbCHYRVQ0ju8MHaZWjd3gTustoDamVwiAHK1nPtFpDN69gTAJwfzU86CeEHYudbjRnhM4e9Ics7cHtZL+GKPkOcO/CbjURAaFWOuj9eYY/PMcw3fCxo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(136003)(346002)(39860400002)(366004)(396003)(41300700001)(2616005)(66476007)(4326008)(36756003)(2906002)(6486002)(8676002)(38100700002)(186003)(31686004)(53546011)(6512007)(6506007)(8936002)(4744005)(26005)(86362001)(66946007)(66556008)(5660300002)(31696002)(478600001)(7416002)(54906003)(316002)(6916009)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VHh2Z2RnZ0Njdnk0UnFqVWRFQlpjMUF0aiswVE1tVDBHUkI5cU9OeUVNQ2U3?= =?utf-8?B?MDRvcUdwV0QyVEE5MmZZTHQ1MGw4Q09STjkxZVZGcXNKT0NLdmxaV0VsWnBN?= =?utf-8?B?VHFlNlp3UnZScUUyLzMwM0NaLytjbWl4aEhSenlTU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=?utf-8?B?UEp0bzEzRXo2TURmMTVVdmw5VUM2UHprY1ljRG5QMFduZkVGejB4Z0NvNlZZ?= =?utf-8?B?L0tvQ3VUSGdRQWNRbG5oalBlNmtYU0R5U3ZUZUpPZld5dVRoZWdNVzRmbklR?= =?utf-8?B?UENCQURGTTVFa1cvZmJIaDVvUHRxOUpiRVR0RFkzSVJhZjFpczI3RkE4LytX?= =?utf-8?Q?GomH2GuK+6rgeEVOYxsL3ZGGw?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea10d29a-c539-43de-f89a-08da5acb0031 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2022 19:01:55.6043 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: krVu5kwn0wlnZ7DSC+7RBtGnQ+ij7kaTfGxAPzgGyiM3mSVYkAbpbo9d7L0RuxQdYNJpNKIiQrM40bMHf0QBYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5088 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/30/22 06:49, Peter Xu wrote: > Looks good to me, I'd tune a bit to make it less ambiguous on a few places: > > /* > * FAULT_FLAG_INTERRUPTIBLE is opt-in. GUP callers must set > * FOLL_INTERRUPTIBLE to enable FAULT_FLAG_INTERRUPTIBLE. > * That's because some callers may not be prepared to > * handle early exits caused by non-fatal signals. > */ > > Would that be okay to you? > Yes, looks good. With that change, please feel free to add: Reviewed-by: John Hubbard thanks, -- John Hubbard NVIDIA