Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1684337pxp; Sun, 6 Mar 2022 23:21:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyePKgjgpaSwLNnJJ34SvkVgzXpFgn0UCYS/JGZ6b2wns+39RcF+hkYvTFPvI86jUoqgTK X-Received: by 2002:a63:2b4d:0:b0:36c:7c39:b66c with SMTP id r74-20020a632b4d000000b0036c7c39b66cmr8734713pgr.583.1646637699884; Sun, 06 Mar 2022 23:21:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646637699; cv=none; d=google.com; s=arc-20160816; b=kfpodSLZgPOEFqr0m1vaAX86wC6S0VzFp31e1aJOYMC31n1SN9F/Vc7hHy+MKFKQ5l c/6K3wLmNqJGRucchN4sBpWXQz0FsB6GZ9TECIOS57CzSKWur9jmYSzob7O7e6idoXgn zaYuC8xCwyJkRbhLblWpm7VhkEMYEpwSKfROaWvnCiy3Yw3dQJfAW4quW5GC5kXDhFC+ xjGAMSRQYoP3Hyn7Zaq3nFQPxG0GLAE8l7xGxLy5NFiGrPJeCFuYjfpdg5p5e6kTC29r Z7E9VoZz2VKts+fGKHMnJQ4RdLMlplCRFeW610sqmO/I06KzURT3zVi6lB5xKeghN5rQ 6oZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=geOY0BIdj9dQeQr7DqDH3p1hC5fsVdyguZbly+zPwEA=; b=iDNsAegKnbViFul5ujXdUrCBwrOkd8Hbk54/UBJeLLJJv/vYFENdMb2OuUeoWcQKxW +tr8gke2gOAQdZ3RYD/hbUN6FNSDpjXKtzJapRmNcv0PPShGnXTuJaggn/EUCjmojD1n eaHtGigjtLLb87uZD3hyKnPyq/OKrYeQSN5DK5LAXeQtYp5VsBfpFx7HCrh72OybbzjQ N98kXFOTxhWrRVmti1X1jZHH6C2s8C/vNYxgCN/To5ZbzfDI1vH/Zp37AI3GrgNyFvEm MIzn07jbx6PtCVK5qiPV+xDtrnucwmxwXlCJJdK7y93BYUB6N+xNquR2uK5PdYLacXAv OhJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=eoKBFkv0; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a17090ac48200b001bd14e01f35si6420829pjt.35.2022.03.06.23.21.24; Sun, 06 Mar 2022 23:21:39 -0800 (PST) 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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=eoKBFkv0; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233987AbiCGHDs (ORCPT + 99 others); Mon, 7 Mar 2022 02:03:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbiCGHDr (ORCPT ); Mon, 7 Mar 2022 02:03:47 -0500 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B5F54F89 for ; Sun, 6 Mar 2022 23:02:53 -0800 (PST) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-2dbc48104beso152752217b3.5 for ; Sun, 06 Mar 2022 23:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=geOY0BIdj9dQeQr7DqDH3p1hC5fsVdyguZbly+zPwEA=; b=eoKBFkv0FaSw/htLzF49O05SJL61SrM2q6muI4X/eTCvVopJwjVnZy/U6ieybXM2yS cgAubMZzSziznc4i6TrZSbZq1vhhRi6NyTLgn3s7NGmMRDqE5jyuYrxleF1bz2UuxhTA zxwnLHHecgF/150OvTd6MONyyWMGYOJEw8wnXC/daertskkGHEqorUfOlHxri3ZQhmkI bc2oDsJpzKVkBRkJU1YBKjncfbAcEKguvIUs6mnQNUWSUzRQySaOy64Mx7JGC0egtyQ7 Rg13CPlGODHwEJQJWa61iHITNjjMtMWPbXbNCHj1B3HLezJlqw1HDGPhn9yjMGaGQ/OV AHmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=geOY0BIdj9dQeQr7DqDH3p1hC5fsVdyguZbly+zPwEA=; b=hMnR8/inTroGRsiSbVYtoBYtzVMF3Am2DqpL6SAzKUJk6AKql8YBnVPEkwTuFmS6K7 mqKJQqz4UcW5jXH8htmxr2RfcA6ZTmwxvlj6FR2cNlPi2Pwzdg76txv43lMim4XjC5ZY f8k8A8O+c4YAmISZK8vgt6GuepXHMs13V49/rc2V7txuFK7lufFV/GJaEPnXRCtS7ayZ cmHzfDIIam3SObGIk+NOd3KRh1jFYr4EGGNZd4RB9FsgUYTWrC+61LkIvIrh1fSyM3xh RP93VY61l9kB8Iz7mp/b9WhJNov2aNscA/t69ugWy2Lo3aIuxKFLBDrZIK9QRtSIS7RO fpiA== X-Gm-Message-State: AOAM5320m0uhB1cHAlg/pRwloiYjhuhvCmVHP7t3BgIKK49y3BTFa9Kf O3V1jOBtAnDuvKEgYO3YXLgFzWR8xZAdbyoUgqgfiw== X-Received: by 2002:a0d:cec2:0:b0:2dc:a4d3:4528 with SMTP id q185-20020a0dcec2000000b002dca4d34528mr5361083ywd.35.1646636572768; Sun, 06 Mar 2022 23:02:52 -0800 (PST) MIME-Version: 1.0 References: <20220304093409.25829-1-linmiaohe@huawei.com> <20220304093409.25829-16-linmiaohe@huawei.com> <875yoq5od4.fsf@yhuang6-desk2.ccr.corp.intel.com> In-Reply-To: <875yoq5od4.fsf@yhuang6-desk2.ccr.corp.intel.com> From: Muchun Song Date: Mon, 7 Mar 2022 15:01:12 +0800 Message-ID: Subject: Re: [PATCH 15/16] mm/migration: fix possible do_pages_stat_array racing with memory offline To: "Huang, Ying" Cc: Miaohe Lin , Andrew Morton , Mike Kravetz , Yang Shi , Matthew Wilcox , Zi Yan , Minchan Kim , Alistair Popple , ave.hansen@linux.intel.com, o451686892@gmail.com, Mina Almasry , John Hubbard , Ralph Campbell , Peter Xu , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Michal Hocko , riel@redhat.com, Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 Mon, Mar 7, 2022 at 1:22 PM Huang, Ying wrote: > > Miaohe Lin writes: > > > When follow_page peeks a page, the page could be reclaimed under heavy > > memory pressure > > I don't think that memory pressure and reclaiming will be an issue. I think he means a page first to be reclaimed then to be offline could encounter this issue and reclaiming is a precondition. Thanks. > > > and thus be offlined while it's still being used by the > > do_pages_stat_array(). > > "offline" seems a possible problem.