Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2062661rwb; Sun, 14 Aug 2022 20:22:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7YscVZoiRrI5J1M9CQw3iVinIR9vLoDZHQXx/9n18fZv7l/tlFIfeWrqsTgwZsg1d3BF5r X-Received: by 2002:a05:6a00:430d:b0:52e:2c15:bf21 with SMTP id cb13-20020a056a00430d00b0052e2c15bf21mr14319485pfb.68.1660533776002; Sun, 14 Aug 2022 20:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660533775; cv=none; d=google.com; s=arc-20160816; b=ZslxKXq7XBbtFb8NkJ+j7iYbtpuwbJCvROb1QBJVnK+YXo4hEYzzQDX1ke/Olj3gc4 qNaZvZ9AoIRqBHp3mhyjt8/nRCNC2nT95rdcEWd+xt8748zXXJhxMaUQsJL4T5/G4dUi l9Tyx3hGXPc8vVLLCEyXoa6g4Y67dWtCXqhI+WV548gTMytxernhoO0st3bHDzmO0K2P oN0f8eqfo8kYwy3gH96W9CvwV8s7c0b4GpGyNgaA7U3oQx2qTobx2vGEoEcx9C24fDy2 KJlRVX19es3cXBLMC1Ul46S4Nu6UPpBXHjPpPJPNoC49Gs/UUDQOQzjb8arvYET/0kgl xSmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=yL33w7Trjh11YgtzwhlV54v6T24vrmzKl/tg/zwGegI=; b=nJkylwubf3c2BejihMGpATMWpVZ+fBsaTgnWosjBrkdK7rggt3D4tGrY95SYc0NWza 2QCXw1xhAL/ZYdgAnWVGEih+GLBhAR6zNA1whZ+dXiZnYvve3EPwVCMtTjDkzWiywNxj TS6tgeZizR9gI4LggdQdqe7Cg3ZCojPFSxsZ/y12o2CNL6bs9N95vdUqYyCQ0xrXii5j J/4MjY4Skw8ctuXy+8u4w5zbWMZRffVdWU4H72Z2rQy16CZ1er3xadBeqGWfDsXj+vhm lIsUc18a+wkFmazQvGiPsLD3R6NjZ0li68P8Byor1oo5yq1Ge1bjt71UqR4Tkma8otay DBUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="b/KZtne5"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a656bc2000000b00419b27d0a83si9520809pgw.476.2022.08.14.20.22.44; Sun, 14 Aug 2022 20:22:55 -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=@intel.com header.s=Intel header.b="b/KZtne5"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbiHOCvp (ORCPT + 99 others); Sun, 14 Aug 2022 22:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiHOCvo (ORCPT ); Sun, 14 Aug 2022 22:51:44 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDD1F13DE7 for ; Sun, 14 Aug 2022 19:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660531903; x=1692067903; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=+PBNMqIeqDhFYEnVesPZtIzro2EO9NNYkXRv9MxnHf0=; b=b/KZtne5eIlvVZmJ903A+RQjfOLedqeuecjNjiGn2dpYoDPJr4vES1nu mkxJGZJ90sW0CUeg5LolSIb1uIoFyB9nJ/y0UgpJmkvJUGQUbzAZk1vOs ulUX5DavaxCvk61NDkGanAK3nvK64rUkiSP3c3djz0Yqg8lcQFWINWeB3 6Z0AZuRbPVwzxuRNjULapSreuyrNV2n7YXalhHtf6qXx9WlbSCghM1IY/ 7/qVOFrTlTd6FxiJnpT22tgcBRT4aC7CeGjdEBgr6hxTywN5pUZmVaWnN K5vK4gP2bS8PcIEZOnRnGPpzatDA1C0x+wJQqkrE782gy7VoJ39CLakis A==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="293147980" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="293147980" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 19:51:43 -0700 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="635326866" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 19:51:41 -0700 From: "Huang, Ying" To: "Wang, Haiyue" Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "david@redhat.com" , "linmiaohe@huawei.com" , "songmuchun@bytedance.com" , "naoya.horiguchi@linux.dev" , "alex.sierra@amd.com" Subject: Re: [PATCH v3 1/2] mm: migration: fix the FOLL_GET failure on following huge page References: <20220812084921.409142-1-haiyue.wang@intel.com> <20220815010349.432313-1-haiyue.wang@intel.com> <20220815010349.432313-2-haiyue.wang@intel.com> <878rnqe074.fsf@yhuang6-desk2.ccr.corp.intel.com> Date: Mon, 15 Aug 2022 10:51:37 +0800 In-Reply-To: (Haiyue Wang's message of "Mon, 15 Aug 2022 10:15:41 +0800") Message-ID: <87o7wmcj7q.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 "Wang, Haiyue" writes: >> -----Original Message----- >> From: Wang, Haiyue >> Sent: Monday, August 15, 2022 10:11 >> To: Huang, Ying >> Cc: linux-mm@kvack.org; linux-kernel@vger.kernel.org; akpm@linux-foundation.org; david@redhat.com; >> linmiaohe@huawei.com; songmuchun@bytedance.com; naoya.horiguchi@linux.dev; alex.sierra@amd.com >> Subject: RE: [PATCH v3 1/2] mm: migration: fix the FOLL_GET failure on following huge page >> >> > -----Original Message----- >> > From: Huang, Ying >> > Sent: Monday, August 15, 2022 09:59 >> > To: Wang, Haiyue >> > Cc: linux-mm@kvack.org; linux-kernel@vger.kernel.org; akpm@linux-foundation.org; david@redhat.com; >> > linmiaohe@huawei.com; songmuchun@bytedance.com; naoya.horiguchi@linux.dev; alex.sierra@amd.com >> > Subject: Re: [PATCH v3 1/2] mm: migration: fix the FOLL_GET failure on following huge page >> > >> > Haiyue Wang writes: >> > > > >> > >> > > This is an temporary solution to mitigate the racing fix. >> > >> > Why is it "racing fix"? This isn't a race condition fix. >> >> The 'Fixes' commit is about race condition fix. >> >> How about " his is an temporary solution to mitigate the side effect >> Of the race condition fix" > > Try to add more words to make things clean: > > "This is an temporary solution to mitigate the side effect of the race > condition fix by calling follow_page() with FOLL_GET set." Looks good to me. Thanks! Best Regards, Huang, Ying >> >> > >> > Best Regards, >> > Huang, Ying >> > >> > > After supporting follow huge page by FOLL_GET is done, this fix can be >> > > reverted safely. >> > > >> > > Fixes: 4cd614841c06 ("mm: migration: fix possible do_pages_stat_array racing with memory offline") >> > > Signed-off-by: Haiyue Wang >> > >> > [snip]