Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp999265iog; Fri, 17 Jun 2022 20:21:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vzzyXEzUxKltSgd+g5EZTRxpyYxdqGMtf/vMUlWuQcU4Zq+OtolhHG89dGBA8DMLSjtU+U X-Received: by 2002:a63:864a:0:b0:3fd:97a1:79f with SMTP id x71-20020a63864a000000b003fd97a1079fmr11844340pgd.51.1655522507567; Fri, 17 Jun 2022 20:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655522507; cv=none; d=google.com; s=arc-20160816; b=cI3itfHsZBcA052HjvV5En3n+QpeImroJ4yMDeZ/xPAyT8LnLY2BQ4JF+4fkCFYyze yFLt7N+sDZ+EUWPYEBWPboxpIcDP8FA372x72czkH6EhO/otSiEoHiwoS32ZDUmMa4rp lysJ+SR7a61wckyJEWsBcGuCKBv/bJ+ugIiIF7gizqU4vkrqYm2SyoiV/cS2kavao2Al ozzVJORdSf54+0h1zo/xC3BZWXFPsXhqoG+8M5LwO4dLmVpxCDPXPrd5R8+xtUnluIt4 ZVUaPQM9BYsYKjUrJUmQShf+PkP79mxm3WsTUWa4FAnmLVu9F85fOOp6fsRl5iHjDXgv 5JKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=IIdPx4fTsXwiRfZjrpOlVAAwZvjGNMCsCI5jhfwA7VU=; b=W118wuHT8aD7sh4uGWwWKUZpsfDbV55IY/a1WQ0VO8WDST7/B8YyXUKzQei9MjOLUW KHHJpNsknTSH2U6mHG4AZB9IDYW/quLyn/p2s1I8Ptoro3Mz1BiTdqVbz2oGvKZMwlun hruOGaw8dmXjFMTMuQ6v2akUijfNKMa9XL1lo+O+k1YcdoZ2iEk+Zj3oyIkyDlp/BXyK oOdliK6cPfcXiDMW/C5F3qUW5DLxEoT7rlQyvGMyFm5ROXalwL9E1Ekeokml/pBDhXKl F//qXTZiLwEaFzmlfmBSaVBLAC/iiWrobvEscsSerkDDg7VB+KFnOysgRGI56aS0uQxL wrUw== ARC-Authentication-Results: i=1; mx.google.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 201-20020a6218d2000000b0051be3edcd47si7727600pfy.229.2022.06.17.20.21.35; Fri, 17 Jun 2022 20:21:47 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383935AbiFRCts (ORCPT + 99 others); Fri, 17 Jun 2022 22:49:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231473AbiFRCtr (ORCPT ); Fri, 17 Jun 2022 22:49:47 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 216B259BB4 for ; Fri, 17 Jun 2022 19:49:47 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LQ0j12rG4zjXyX; Sat, 18 Jun 2022 10:48:37 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 18 Jun 2022 10:49:44 +0800 Subject: Re: [PATCH v4 1/4] mm: reduce the rcu lock duration To: Andrew Morton CC: "Eric W. Biederman" , Ying Huang , , , , , , , , , , , References: <20220530113016.16663-1-linmiaohe@huawei.com> <20220530113016.16663-2-linmiaohe@huawei.com> <87bkvdfzvm.fsf@email.froward.int.ebiederm.org> <87y1yga1r2.fsf@email.froward.int.ebiederm.org> <87ilph90dx.fsf@email.froward.int.ebiederm.org> <20220617172316.de2d41877e86be344052b9f5@linux-foundation.org> From: Miaohe Lin Message-ID: <5abc85bc-fec7-afbf-4ec4-90c1385195d2@huawei.com> Date: Sat, 18 Jun 2022 10:49:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20220617172316.de2d41877e86be344052b9f5@linux-foundation.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2022/6/18 8:23, Andrew Morton wrote: > On Tue, 7 Jun 2022 17:19:53 +0800 Miaohe Lin wrote: > >>> >>> >>> If the checks are not made to guarantee they are all checking against >>> the same mm, the code needs a comment to say that there is a tiny race. >>> The comment should say we don't care about the tiny race because >>> the worst that can happen is that a page is migrated to a different >>> numa node. And so we don't care. >>> >>> >> >> I tend to do this one. To make sure, is the below code change what you suggest? > > Eric went quiet. > > As I understand it, any changes arising from this discussion can be > done as a followup patch. So I'm planning on moving this 4-patch > series into the non-rebasing mm-stable branch late next week. I will send a followup patch when discussion is done. Thanks. > > > . >