From patchwork Mon Aug 15 01:03:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 12943003 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 43CDBC25B06 for ; Mon, 15 Aug 2022 01:03:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD9766B0074; Sun, 14 Aug 2022 21:03:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B881B6B0075; Sun, 14 Aug 2022 21:03:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A507D8D0002; Sun, 14 Aug 2022 21:03:39 -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 984856B0074 for ; Sun, 14 Aug 2022 21:03:39 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6E2CE80CA8 for ; Mon, 15 Aug 2022 01:03:39 +0000 (UTC) X-FDA: 79800029358.29.2195FE3 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf06.hostedemail.com (Postfix) with ESMTP id AE19D180194 for ; Mon, 15 Aug 2022 01:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660525418; x=1692061418; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=G6eV86D86/ueseZifBzMfch5iZxMZYRohCP6IporhPo=; b=BVcFowJX2mmwYXIsI/rl5Fwu3y3cni9St20uTATEyybM4UYzgKDgTGPv u41qQd7/kbv5HG0enphUbCGrARHOvZoVNC1/9un/9Qbqp3/Rx077wDKfk U9RaxaU4qiDtw3/gNFFSwYu1NHLJzqHf8cEhA0M3ydl4ESRztUddqJopk sCoooynY5KtCTY6mwAabYFt/+r2QtsDGcNKv9FbfPS3WgfrMYwMIeZ+kT f33xXWVn8WKRHiSN1B/KxtmgBZpo392x3BxtSYUrtkYt4l95ta1f5ND2t 1r/9wFUZjl+Gup4XkNN/pAq+O21GsIIQqWCP9C7QBrZXKCXn54n5FNNOj g==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="289435643" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="289435643" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 18:03:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="695823574" Received: from sse-cse-haiyue-nuc.sh.intel.com ([10.239.241.114]) by FMSMGA003.fm.intel.com with ESMTP; 14 Aug 2022 18:03:34 -0700 From: Haiyue Wang To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, david@redhat.com, linmiaohe@huawei.com, ying.huang@intel.com, songmuchun@bytedance.com, naoya.horiguchi@linux.dev, alex.sierra@amd.com, Haiyue Wang Subject: [PATCH v3 0/2] fix follow_page related issues Date: Mon, 15 Aug 2022 09:03:47 +0800 Message-Id: <20220815010349.432313-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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660525419; a=rsa-sha256; cv=none; b=rY7h0QrD43ZZCGoxT1mfb27LelF7vJL+6ECkvouvA6a9SY0bf/Oz/+v823MOieEcjkbFQq Bf4nbcxs4kRVNMybY6frGivESUNYWtyibcYVvyqb5bgArFW/IWliO2/+nnmsRR7nNATjUW hfiH0BrV07hwgtc/WLzudy3oSfDrmEE= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=BVcFowJX; spf=pass (imf06.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=haiyue.wang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660525419; 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=wKpR5zc1ahJKuf7NrBpW+TZ5l/Slb7xDIr+vYEwXp6Q=; b=F4Vl/rehqx8UnCqVG5N5+iU8wDK844/2g33EM77Tj8jISkxEOJPynhYKwl7geEYi06Fh3H m76MQIJBxJbAYxm+88V6eklq1zGkJxuvNsrcQYX/mVI6OgHWq8+ea+Hpro7ZDt18y9ZjUa 9h6z3lFKTNMaof9+2tNYaDMGMlWgS3U= X-Rspamd-Queue-Id: AE19D180194 Authentication-Results: imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=BVcFowJX; spf=pass (imf06.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=haiyue.wang@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam12 X-Stat-Signature: drgqbps5ng1atp778j15mf7fhuckhb3t X-HE-Tag: 1660525418-451655 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: 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(-)