From patchwork Mon Aug 15 01:59:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 12943034 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 6BE65C25B06 for ; Mon, 15 Aug 2022 01:59:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D9BE18D0001; Sun, 14 Aug 2022 21:59:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D4BFC6B0074; Sun, 14 Aug 2022 21:59:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C13358D0001; Sun, 14 Aug 2022 21:59:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id AFB996B0073 for ; Sun, 14 Aug 2022 21:59:00 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 944461A0430 for ; Mon, 15 Aug 2022 01:59:00 +0000 (UTC) X-FDA: 79800168840.28.446D1E5 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf06.hostedemail.com (Postfix) with ESMTP id 6F05D18003B for ; Mon, 15 Aug 2022 01:58:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660528737; x=1692064737; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oI6Y/L8l9dauwG68bQ11LVdS0Udl7+FVb4OvAc1pUmE=; b=iftKrTTkAeWmEl0mhkwOlVVCUJ5Ex5vgWWLbQjAZpJhAk1ZtoKCahhHm NLaGjArlgLcdxvyua6U4O4gMZl3C/Z+ZVqTAsno6E+2iAsWrmpZijrdzT HBiQ71QQxmdaks2eyOuSsz+zq7GtPKSYWuqFuFGjwfDbKdgKGFMal34d0 SWxnbrvCqKftK24Wc4kHk3ukO+CiwYLmbMpwFcBalhhptmcs34yasZE4k 5zTFCVX8mvYmjhxI2+r2Ri01GS1f1bVoB5RFC9RXHLTo9ifih5QPlRmfP 8oQTafUU6/ogCfsYqCxyPXYzyR2jqtPWMl9YunkaglWAC2zl1hwtHCvJ3 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="317851799" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="317851799" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 18:58:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="557132003" Received: from sse-cse-haiyue-nuc.sh.intel.com ([10.239.241.114]) by orsmga003.jf.intel.com with ESMTP; 14 Aug 2022 18:58:52 -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 v4 0/2] fix follow_page related issues Date: Mon, 15 Aug 2022 09:59:07 +0800 Message-Id: <20220815015909.439623-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=1660528740; a=rsa-sha256; cv=none; b=S1vjNTlZcbnvZwNEcOT8uC1H6Yrm0XJwWYo0GDqxmvNGK4Tg41NRCrsTQOJULLn+nH8RIg nOwG51f/cdSosxuoRhMQnOtPauTMlZ6kRWdJYRzsJh9ByAxwp7jBb2Q5u9+06w9ln+Gm1w JEA1Hpds1IyQ92s1fg7PcVCqcfACyjE= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=iftKrTTk; spf=pass (imf06.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.88 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=1660528740; 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=40FtmEPCSAddoEqw/6uOdo1Gx4lM5t6FBrFGmPHBglM=; b=SIQYkW0qLWPT0WCarqVDAw6eWTn46cyQxBqRByri/bSZyfNgYFlZDRAA5Xa4sjNu5UX1GW B7KRJm06ALFon4s+M+KteZt/i1Vfo95IJUWASQUDLaFon+llHlAevcExpxdkyedxiXLEhe ZautblbwULbFOAmLvHe9TQrAarpuv0U= X-Stat-Signature: cjqui4s5caaysipjks7y9qwecfekctei X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 6F05D18003B Authentication-Results: imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=iftKrTTk; spf=pass (imf06.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=haiyue.wang@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-HE-Tag: 1660528736-994664 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: 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(-)