Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2036976rwb; Sun, 14 Aug 2022 19:37:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR6xcHndDHAhqxpHGyWPLgueJonoxpCe8CoykzDdmHkZTQZiYkPxlHuRRvudOtWZ6auf8M0R X-Received: by 2002:a05:6402:3485:b0:43d:7fe0:74d1 with SMTP id v5-20020a056402348500b0043d7fe074d1mr12726421edc.413.1660531073510; Sun, 14 Aug 2022 19:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660531073; cv=none; d=google.com; s=arc-20160816; b=Ay/qd4CM/9tH5BbsAZE19O5jjL7zR9rU+k4T6705S2mtU87DWMsIcVylVa0lR7Uwq0 NmJonnLWnw8YwKN2C/0Jwe2Luh7rqnNmwqUopZ5Vg7R7RY1UWVKddNX37JjAY85IrfMd S8I0QfGHGdSkvUy2dP51lUteYT1h0NmuDoB8ePuKPh90DpAQsmFYp6UhNFxmL8/QEi6P j8pEHGdrCkn+GfBCQfqCp/ETt44KQIAgLaGg2nA5nbDLdJcsxN6cH7yj9Qwhuet5Zkyx kMVrPiKTy+SusA5w0MT7L2zFptEbvzWKS03m8gUicWJXXjXAmhdR8k0k2lq1rOyC5auE 9dSg== 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=gr9WCBJ2fkX5R+ZzKKFumU9ZaQ3KGy7rFyCfh8SmKzg=; b=NwPKY04FtOdF+DUKQ65WnU4L8/ui/W3sD/e/uy0tcjF3HdZQcrbNi7SGXKDAoGulZF hkx0Vx3x3jpuW1UgwqefB9jyKZZGci84I8wPjUGY7HMLkCSBHGEDkooVWcqW08Q5wxOm i7sJzhBNf9ZUcnNNN7lsIT3QNwZk4YGj5zZRfVG7fwdKtBFMqeCWmzId+9cVku83nQ6D Nno6748OgdNwpqY0AGqNBqh8h6+sch2QwB/sWA3C3gIudDc8ULzs7+ry3MoPbSOe2T0w DasareDjGtkWk+rl7tASkExHAsUNKBUGAUMMSP7yu0oNhzGLkzitxeiYB7LAkbq5thFN UcEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bYr3LvQ8; 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 y13-20020a50ce0d000000b00435681044a9si6684672edi.372.2022.08.14.19.37.27; Sun, 14 Aug 2022 19:37:53 -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=bYr3LvQ8; 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 S229958AbiHOB7g (ORCPT + 99 others); Sun, 14 Aug 2022 21:59:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbiHOB7d (ORCPT ); Sun, 14 Aug 2022 21:59:33 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A84612ABC for ; Sun, 14 Aug 2022 18:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660528773; x=1692064773; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=kA7lDKgziz+W9ciW3E//tMKB+dBOyRW8yX0jMyo2XGo=; b=bYr3LvQ8Ib3mMfEWtXfO29B1m33aDSLq6iVc/O4HwoOuaaYf69N51Qp3 aASs2j0c2MjAZmVxn6kOMKLbRRPPwXZFdz3dEorr0RUmj78FdobNalgVw Pxa+MsJiqbDvqeqK/BnPEBiCkL+hWBsckDo4knptVAvf+dFiAQN1hTFzL 92iwLR16cdhHQlZnP2u7oBZ71724TSEFBuIxq1aW/orlbQHhawhNURQvL TszQM7/CVfMtTNgK3H3cHMI6S93yc9JgU+GcJTWI4iRfTeLbQhLEybbWO nt/20j2LWFUdkythSO1ebVQlx1tiKizEawidVns4tNrkSVIH0R2Eu/bfW g==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="289441331" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="289441331" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 18:59:33 -0700 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="582716835" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 18:59:30 -0700 From: "Huang, Ying" To: Haiyue Wang Cc: , , , , , , , 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> Date: Mon, 15 Aug 2022 09:59:27 +0800 In-Reply-To: <20220815010349.432313-2-haiyue.wang@intel.com> (Haiyue Wang's message of "Mon, 15 Aug 2022 09:03:48 +0800") Message-ID: <878rnqe074.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=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Haiyue Wang writes: > Not all huge page APIs support FOLL_GET option, so the __NR_move_pages move_pages() is a syscall, so you can just call it move_pages(), or move_pages() syscall. > will fail to get the page node information for huge page. ~~~~~~~~~ some huge pages? > This is an temporary solution to mitigate the racing fix. Why is it "racing fix"? This isn't a race condition fix. 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]