From mboxrd@z Thu Jan 1 00:00:00 1970 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 AA3AEC433FE for ; Tue, 12 Apr 2022 06:33:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CE2B56B0074; Tue, 12 Apr 2022 02:33:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C92AA6B0075; Tue, 12 Apr 2022 02:33:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B811C6B0078; Tue, 12 Apr 2022 02:33:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id AA3BB6B0074 for ; Tue, 12 Apr 2022 02:33:30 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 7F281121AEB for ; Tue, 12 Apr 2022 06:33:30 +0000 (UTC) X-FDA: 79347260580.12.D534B6B Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf23.hostedemail.com (Postfix) with ESMTP id 12CDA140009 for ; Tue, 12 Apr 2022 06:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649745209; x=1681281209; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=sPoxUfoq82bRd76a0An8mZp+NU2ywgcrUAbvXHKu904=; b=n9EOKUfzKQSd+BI9v0JDS0UorJpPaBBDswWocykIccS/K+9N8nYnGA2v /m86HDFgGbl2brEvPELA8WBLvAAKTLfPgZjoCgl3zR4DsQk2AniNDe5KT 3Eeb0nz+n2UMPa/vZuUbgqFkT8xIRf8vruicZ3MrQen7JK2XmXcjr0qCc KO5wYdJasmKTXyLuPCAXdoxhjpSWQSpYFtHGnDkdiIvZrU915VSVMD3DN s33to0wnHeDYjx5UtlVUrpNgeYglLKbz/o3+ScE8O2KjRzklYkVBHsR4S 8kyWTFqGOJd+mNOTrs1wO6GQ98f+OXvvt6+ADoMMh5h5gZQzA8sshCYnL g==; X-IronPort-AV: E=McAfee;i="6400,9594,10314"; a="242228629" X-IronPort-AV: E=Sophos;i="5.90,253,1643702400"; d="scan'208";a="242228629" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 23:33:27 -0700 X-IronPort-AV: E=Sophos;i="5.90,253,1643702400"; d="scan'208";a="724308355" Received: from joliu-mobl2.ccr.corp.intel.com ([10.254.214.243]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 23:33:21 -0700 Message-ID: Subject: Re: [PATCH 0/4] A few cleanup and fixup patches for migration From: "ying.huang@intel.com" To: Miaohe Lin Cc: mike.kravetz@oracle.com, shy828301@gmail.com, willy@infradead.org, ziy@nvidia.com, minchan@kernel.org, apopple@nvidia.com, dave.hansen@linux.intel.com, o451686892@gmail.com, jhubbard@nvidia.com, peterx@redhat.com, naoya.horiguchi@nec.com, mhocko@suse.com, riel@redhat.com, osalvador@suse.de, david@redhat.com, sfr@canb.auug.org.au, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton Date: Tue, 12 Apr 2022 14:33:13 +0800 In-Reply-To: <880376f0-f480-979b-261f-72cf9475474c@huawei.com> References: <20220409073846.22286-1-linmiaohe@huawei.com> <880376f0-f480-979b-261f-72cf9475474c@huawei.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: c46afjsy1xkqyd1r1t75y1zym37aayih Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=n9EOKUfz; spf=none (imf23.hostedemail.com: domain of ying.huang@intel.com has no SPF policy when checking 192.55.52.136) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 12CDA140009 X-HE-Tag: 1649745208-402900 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: On Tue, 2022-04-12 at 11:29 +0800, Miaohe Lin wrote: > On 2022/4/12 10:25, ying.huang@intel.com wrote: > > On Sat, 2022-04-09 at 15:38 +0800, Miaohe Lin wrote: > > > Hi everyone, > > > This series contains a few patches to remove unneeded lock page and > > > PageMovable check, reduce the rcu lock duration. Also we fix potential > > > pte_unmap on an not mapped pte. More details can be found in the > > > respective changelogs. Thanks! > > > > It appears that you ignored my comments for the previous version. Can > > you check it? > > I do remember [1] and I tried to make isolate_huge_page consistent with isolate_lru_page. > But their return value conventions are different. isolate_huge_page return 0 when > success while isolate_huge_page returns true in this case. So make them consistent > would lead to many code change. I should have added this in my changelog. If you found new problem, you can reply to the original email. Just don't ignore the comments. Best Regards, Huang, Ying > Thanks. > > [1] https://lore.kernel.org/linux-mm/8735jsgctq.fsf@yhuang6-desk2.ccr.corp.intel.com/ > > > > > > Best Regards, > > Huang, Ying > > > > > --- > > > v1: > > >   rebase [1] on mainline. > > > > > > [1] https://lore.kernel.org/lkml/20220304093409.25829-2-linmiaohe@huawei.com/T/ > > > --- > > > Miaohe Lin (4): > > >   mm/migration: reduce the rcu lock duration > > >   mm/migration: remove unneeded lock page and PageMovable check > > >   mm/migration: return errno when isolate_huge_page failed > > >   mm/migration: fix potential pte_unmap on an not mapped pte > > > > > >  include/linux/migrate.h | 2 +- > > >  include/linux/swapops.h | 4 ++-- > > >  mm/filemap.c | 10 +++++----- > > >  mm/hugetlb.c | 2 +- > > >  mm/migrate.c | 31 +++++++++++++------------------ > > >  5 files changed, 22 insertions(+), 27 deletions(-) > > > > > > > > > > > . > > >