Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp986855iog; Thu, 30 Jun 2022 14:29:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tAIb48ToVWJi7UXa1kCbwnOQ7RppG0NgOd/sjhqGXCtP+uQvPHHpS0K/Er02wJHfTttSXN X-Received: by 2002:a17:90a:1588:b0:1e0:a45c:5c1 with SMTP id m8-20020a17090a158800b001e0a45c05c1mr12526597pja.65.1656624555854; Thu, 30 Jun 2022 14:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656624555; cv=none; d=google.com; s=arc-20160816; b=KyagytFX4z+Y+MSawVNs5NP+z81+ouIzjr1lZHJ2JMY3HHKTZJFi2YUHozNZI+hTkn XUmkBJHIhRrQ/wLPKjuj9njMntZoc+9IdT4rlAh2bGp34h10KMp1KDyIq051f+NKc3jH UZjinoZL/jvh9xghQHh3OWyp74trTNM9IFTwIwMiHtsP1KYCHghthV57sx4es7Uhuw0R 68ar3DE0IavNfCBvHUokHufjV1gvxK6XptXBm86sd/YMQWsPpVm5FO3a0yliSGBSO5jK PHITe9vb+b+gK+4/a4Odsx40i8dlvQgHFT87bWxJQNhxstTXXVubymo9EPTmR0TGayui LpTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Wd1ki83p3SXylkpu3EgQoI69vBxY8no6C/MZWnJcErg=; b=MK50RMPfqBxXE5oyWnXPDW8M4sHy780f1Ai61yc0L/zGYLuLsV7jt4NBJuG9GciMEX Tc+nLYfnXFn65R+DtljGVw25VKY/6iL86Bvrzbq+n92HbXie2xKf6dFuMY7U4nyWMesj n8vRxRcN0QeoaJMDCNUstmI3ZYZ2tLpn61we/jyWJqAIHWZQZv/uu1ItjTbCXOJ9wywo injruGxpEE37yL0Jbo/9+cNVThtGNtNFP/PgiR+txqicBMUFNrWgBfogzSxbCj40ewij MGm3dOLRMm5uezUHn6IYKG2NxlpBReN0/HViVFytTktM7DDRyJ/AgnkntBrxfNQv0DKz pqQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="SBqGYRC/"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx14-20020a17090b4b0e00b001ed05bf19basi4651892pjb.67.2022.06.30.14.29.03; Thu, 30 Jun 2022 14:29:15 -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=@redhat.com header.s=mimecast20190719 header.b="SBqGYRC/"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237474AbiF3V1o (ORCPT + 99 others); Thu, 30 Jun 2022 17:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237383AbiF3V1k (ORCPT ); Thu, 30 Jun 2022 17:27:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F060443D3 for ; Thu, 30 Jun 2022 14:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656624457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Wd1ki83p3SXylkpu3EgQoI69vBxY8no6C/MZWnJcErg=; b=SBqGYRC/qEreAurIQg4SdLx+nRYR3BkDyB2hmchlNnzr0LZRWXmR/oEdiuMMhJ1Ev24o34 TkHUKt3pD8ZpY11qsrlivmUk4zdUWgSR4kVzsQIuulRiJRBE5/mbfxsiaIgcJJfdHlPc86 Y/rh17jr4usYDXmUAxUVdHxWC6sKwMo= Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-7-DhXTZubDMU6LgoffY8e9cA-1; Thu, 30 Jun 2022 17:27:34 -0400 X-MC-Unique: DhXTZubDMU6LgoffY8e9cA-1 Received: by mail-io1-f71.google.com with SMTP id f1-20020a056602070100b00674f8035487so189962iox.17 for ; Thu, 30 Jun 2022 14:27:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Wd1ki83p3SXylkpu3EgQoI69vBxY8no6C/MZWnJcErg=; b=heiEEoXSKwAwDHrSTYNGelnEuIJxR3aQdtHVtI8akJp9idmE8C6MhGHDuYbgn0qrMe 3+Cp8mIeATe1pql6tErpd2GEZ+9yIO/r57PrLUrGi57zLWqRXHWCIGvVXfv7cnRo86Sg TNnEBuLddow7ovgXlGmmKxjpPQCe+3M243AM005ZqSDgO7Hi2//SSMT4/eJm0CKivXjY Kg9DVGVtBl05BRPu00AeOOIVVVz6AK1QAgJ2t9Im7i6jqgfCyvPtQtRTyFqJ6/YisfsW jiLvWy0cSaIMZ71RuYFSJ/z/eSNvrHLkF1psPron+11RrfcO5SR4H6qgSmzNPHeOhRyO YutQ== X-Gm-Message-State: AJIora9SX8SIoc0UlVm97R7mxzCPOWayrF5VhLk0WbOtF3Ybs1pW6crA RacI8AKDJvMgfSP62QcjcL84EmCWj3SuMV1f1t+IGvvXK9ix8TWfytOdbKB1om5u5kfP1tMwb/P zf2QYD36EgLE5PPCH5KVXmUyB X-Received: by 2002:a6b:fb05:0:b0:657:655e:a287 with SMTP id h5-20020a6bfb05000000b00657655ea287mr5835539iog.211.1656624453803; Thu, 30 Jun 2022 14:27:33 -0700 (PDT) X-Received: by 2002:a6b:fb05:0:b0:657:655e:a287 with SMTP id h5-20020a6bfb05000000b00657655ea287mr5835526iog.211.1656624453577; Thu, 30 Jun 2022 14:27:33 -0700 (PDT) Received: from xz-m1.local (cpec09435e3e0ee-cmc09435e3e0ec.cpe.net.cable.rogers.com. [99.241.198.116]) by smtp.gmail.com with ESMTPSA id e98-20020a02866b000000b00331598832besm9005563jai.25.2022.06.30.14.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 14:27:32 -0700 (PDT) Date: Thu, 30 Jun 2022 17:27:30 -0400 From: Peter Xu To: John Hubbard 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 Subject: Re: [PATCH 1/4] mm/gup: Add FOLL_INTERRUPTIBLE Message-ID: References: <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> <0183984a-c95f-c92e-629e-775071b5cd23@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0183984a-c95f-c92e-629e-775071b5cd23@nvidia.com> X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Jun 30, 2022 at 12:01:53PM -0700, John Hubbard wrote: > 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 Will do, thanks! -- Peter Xu