From patchwork Mon Aug 15 07:02:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 12943176 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9065BC00140 for ; Mon, 15 Aug 2022 07:02:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0EE958D0001; Mon, 15 Aug 2022 03:02:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 09EFA6B0074; Mon, 15 Aug 2022 03:02:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA87D8D0001; Mon, 15 Aug 2022 03:02:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D7C6F6B0073 for ; Mon, 15 Aug 2022 03:02:31 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A928FA0EB6 for ; Mon, 15 Aug 2022 07:02:31 +0000 (UTC) X-FDA: 79800933702.02.BD1EB4C Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf27.hostedemail.com (Postfix) with ESMTP id DA96A401C1 for ; Mon, 15 Aug 2022 07:02:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660546949; x=1692082949; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zDz906ofjPYXdKHytM2ivc64ccd+83vvyKv2hXZsRy8=; b=ePy2rcQGbNIlH/47X4gZnFtcmE5ywP472g9y4d4Mtp0/yUhA0MpEwTGY 2ubd9crd806hk8vK24WvarVziqyBQY3t2bZznyZ7CWWuaQ8YGWV6DDevz ffeD4jDwDivrgJHOZIJRGQHsVZVSrMyW7jOnP//DibO7G1om8FUoXVuPC G/bxqmqlFPbEGvUnGHsuzI9Tv0b8IJ9tBxgkxr0O8262iyLtSdqU6lH8B mFO1gsvlsfr6HN0yIJBku3psRrrNKRZM0ENuxYEohBp+BifabnPnAvYUu hM8TEYM/RSrn8qXlO4dkqVPQ+lv+bmHKAeh1LNZkR9sD6mwQzR8P8tf59 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="271677564" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="271677564" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 00:02:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="666566754" Received: from sse-cse-haiyue-nuc.sh.intel.com ([10.239.241.114]) by fmsmga008.fm.intel.com with ESMTP; 15 Aug 2022 00:02:25 -0700 From: Haiyue Wang To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, david@redhat.com, apopple@nvidia.com, linmiaohe@huawei.com, ying.huang@intel.com, songmuchun@bytedance.com, naoya.horiguchi@linux.dev, alex.sierra@amd.com, Haiyue Wang Subject: [PATCH v5 0/2] fix follow_page related issues Date: Mon, 15 Aug 2022 15:02:38 +0800 Message-Id: <20220815070240.470469-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220812084921.409142-1-haiyue.wang@intel.com> References: <20220812084921.409142-1-haiyue.wang@intel.com> MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=ePy2rcQG; spf=pass (imf27.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=haiyue.wang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660546951; a=rsa-sha256; cv=none; b=Q+W4L260hcgxFl08sSFvXdtkuY1lH5Q+u1MIXYtR9R8iXYznNWpbnOVJh2U9Mvhtgs4HGJ GnlKEvwppJ/oAxqnQXMS5a6GfoxKwii2s6BIFc6y5WiYUtrRfRShghsKmyrymqZZnzUljf ABAuIhBsN/J3JleImk39DoerUkesNe4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660546951; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=W7b+y7saAAe/DvGoUpFTOIq5pBy8f6DzFkWUiM3fwKg=; b=CZiK/4VBw1SUaPVYOpBu97oLwAgiH0eby3UtW19tCfCZDJA+izkUQWXTDymXb5ooEOKcMk g/Usz8khLg2Ag8JIMbd1H4/ZQlgOybC1xrYy8GT5UC+DtLZ257zwh0w6fQPBqMtoDXxFIB Y7kfPRM6hgapyMaTMghWM3/QdmUHM3A= Authentication-Results: imf27.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=ePy2rcQG; spf=pass (imf27.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=haiyue.wang@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: DA96A401C1 X-Stat-Signature: 7ug8t6ktt9t38fsznag8bt3f3skrparc X-Rspam-User: X-HE-Tag: 1660546949-476205 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: v5: reword the commit message for FOLL_GET with more information. v4: add '()' for the function for readability. add more words about the Non-LRU pages fix in commit message. v3: Merge the fix for handling Non-LRU pages into one patch. Drop the break_ksm zone device page check. v2: Add the Non-LRU pages fix with two patches, so that 'mm: migration: fix the FOLL_GET' can be applied directly on linux-5.19 stable branch. Haiyue Wang (2): mm: migration: fix the FOLL_GET failure on following huge page mm: fix the handling Non-LRU pages returned by follow_page mm/huge_memory.c | 4 ++-- mm/ksm.c | 12 +++++++++--- mm/migrate.c | 20 +++++++++++++++----- 3 files changed, 26 insertions(+), 10 deletions(-)