From patchwork Sun Aug 14 14:05:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 12942889 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 7481FC25B08 for ; Sun, 14 Aug 2022 14:05:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9D4F26B0073; Sun, 14 Aug 2022 10:05:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 95DA16B0074; Sun, 14 Aug 2022 10:05:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7FDC08D0002; Sun, 14 Aug 2022 10:05:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 6964C6B0073 for ; Sun, 14 Aug 2022 10:05:27 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 412D91C62F0 for ; Sun, 14 Aug 2022 14:05:27 +0000 (UTC) X-FDA: 79798370694.06.FF90F08 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf31.hostedemail.com (Postfix) with ESMTP id A5A31201AE for ; Sun, 14 Aug 2022 14:05:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660485925; x=1692021925; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9fAAJ+0Y6IupPR1Maei1hF/1z3rRhAIksVvzcmYEB40=; b=Am2Klny9v3wDZ+6Cb0y9PWPOe0/8mncXjHBib6ymKbWktp4Ue6/IAEza shzbWIEOKmXzWm+qS8S2j1OYBYwkKroNQtxLAjEZIwemmt9kH8aV147m7 sYgQPkw4wkbzE1uUu69NDC4h/y65CIaeVhZ8dl03hMpOcxqjJ+Vh8pIx/ mNWCuYkrutkKtYLJ/jx3Cox2WupbyC+q4I0Sk7ZNuaOHnRUcg0EPVOvQ9 wE7v3UVVfFyEyfmlAWUf1KlGbKyhw25RODD9iIE0kBjz/upMCPMjdbyWL v1Fczf9Rs30JJ2TQA7nClwXDKsWYkh7VSAngnWYWqxExQOBtwtJMA3Ej4 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="378117182" X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="378117182" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 07:05:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="639385151" Received: from sse-cse-haiyue-nuc.sh.intel.com ([10.239.241.114]) by orsmga001.jf.intel.com with ESMTP; 14 Aug 2022 07:05:20 -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 v2 0/3] fix follow_page related issues Date: Sun, 14 Aug 2022 22:05:31 +0800 Message-Id: <20220814140534.363348-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=1660485926; a=rsa-sha256; cv=none; b=N1QGuHwZ0uBW+xO+beutvVsz7B+QeoroDam5fdj2tZUzgkkSVH0pNBHsuSks+eZnscecCG BH6bdy6vlQ8HPSJjiRRX5r8KKlNoAExValFvFWEWoSLAdb1lP0vuGcqArbJ3vO2ooix/pO k5tFgyBu2N/1aKpjE2v5TvceUh7ZxDk= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Am2Klny9; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf31.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=haiyue.wang@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660485926; 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=Hcm2gMPvB81tsDVyusv7BnGhcWahLUHBrbylgQVXicA=; b=UFmfz54IJSKHnug5tnmV2yCSSi6rpXvSxorvUR22GgIkz4K24GTDVbnnI9DS59RjmfLXaw TzQ4cZl6cm5wuRW7cgzHUM1i2SQe5WQST4w3HD724rzyoSz0glt+frht19LMxCJStJWJHi y/QKERgcucVjrkFw0mYnMADJCV67Hp0= X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: A5A31201AE Authentication-Results: imf31.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Am2Klny9; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf31.hostedemail.com: domain of haiyue.wang@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=haiyue.wang@intel.com X-Rspam-User: X-Stat-Signature: rx8ckrrftchpzi1r5wuomk6qrmnwaabg X-HE-Tag: 1660485925-873605 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: 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 (3): mm: revert handling Non-LRU pages returned by follow_page mm: migration: fix the FOLL_GET failure on following huge page mm: handling Non-LRU pages returned by follow_page mm/huge_memory.c | 4 ++-- mm/ksm.c | 16 +++++++++++++--- mm/migrate.c | 20 +++++++++++++++----- 3 files changed, 30 insertions(+), 10 deletions(-)