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 93F7CC4332F for ; Tue, 15 Mar 2022 13:55:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD2598D0002; Tue, 15 Mar 2022 09:55:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C57098D0001; Tue, 15 Mar 2022 09:55:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AF7FE8D0002; Tue, 15 Mar 2022 09:55:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0246.hostedemail.com [216.40.44.246]) by kanga.kvack.org (Postfix) with ESMTP id 9ACA08D0001 for ; Tue, 15 Mar 2022 09:55:31 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 531039D652 for ; Tue, 15 Mar 2022 13:55:31 +0000 (UTC) X-FDA: 79246768062.22.BEC31A6 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf20.hostedemail.com (Postfix) with ESMTP id EF64A1C0011 for ; Tue, 15 Mar 2022 13:55:29 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KHvyb6DSCzfZ2D; Tue, 15 Mar 2022 21:53:59 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Mar 2022 21:55:26 +0800 Subject: Re: [PATCH v2 2/3] mm/memory-failure.c: avoid calling invalidate_inode_page() with unexpected pages To: Andrew Morton CC: =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBICjloIDlj6Mg55u05LmfKQ==?= , "tony.luck@intel.com" , "bp@alien8.de" , "mike.kravetz@oracle.com" , "shy828301@gmail.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linux-edac@vger.kernel.org" References: <20220312074613.4798-1-linmiaohe@huawei.com> <20220312074613.4798-3-linmiaohe@huawei.com> <20220313234157.GB3010057@hori.linux.bs1.fc.nec.co.jp> <8aa7cdd9-8104-2fea-879d-61519f6489d1@huawei.com> <20220314025034.GA3061370@hori.linux.bs1.fc.nec.co.jp> <219aeec6-5ff6-5101-8192-13b9f761e7c9@huawei.com> <20220314164510.acf6157930122583808375e1@linux-foundation.org> From: Miaohe Lin Message-ID: Date: Tue, 15 Mar 2022 21:55:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20220314164510.acf6157930122583808375e1@linux-foundation.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: EF64A1C0011 X-Stat-Signature: jmduhm6ukbyagzs1nf4nukpd3msr3e37 Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf20.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-HE-Tag: 1647352529-910622 Content-Transfer-Encoding: quoted-printable 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 2022/3/15 7:45, Andrew Morton wrote: > On Mon, 14 Mar 2022 10:59:40 +0800 Miaohe Lin wr= ote: >=20 >> On 2022/3/14 10:50, HORIGUCHI NAOYA(=E5=A0=80=E5=8F=A3 =E7=9B=B4=E4=B9= =9F) wrote: >>> On Mon, Mar 14, 2022 at 09:58:49AM +0800, Miaohe Lin wrote: >>>> On 2022/3/14 7:41, HORIGUCHI NAOYA(=E5=A0=80=E5=8F=A3 =E7=9B=B4=E4=B9= =9F) wrote: >>>>> On Sat, Mar 12, 2022 at 03:46:12PM +0800, Miaohe Lin wrote: >>>>>> Since commit 042c4f32323b ("mm/truncate: Inline invalidate_complet= e_page() >>>>> >>>>> This commit ID does not exist in mainline (or in the latest mmotm?)= , >>>>> so you can't use it in patch description. Could you update this pa= rt? >>>>> >>>> >>>> This commit is in the mmotm but not in mainline yet: >>>> >>>> commit 042c4f32323beb28146c658202d3e69899e4f245 >>>> Author: Matthew Wilcox (Oracle) >>>> Date: Sat Feb 12 15:27:42 2022 -0500 >>>> >>>> mm/truncate: Inline invalidate_complete_page() into its one call= er >>>> >>>> invalidate_inode_page() is the only caller of invalidate_complet= e_page() >>>> and inlining it reveals that the first check is unnecessary (bec= ause we >>>> hold the page locked, and we just retrieved the mapping from the= page). >>>> Actually, it does make a difference, in that tail pages no longe= r fail >>>> at this check, so it's now possible to remove a tail page from a= mapping. >>>> >>>> Signed-off-by: Matthew Wilcox (Oracle) >>>> Reviewed-by: John Hubbard >>>> Reviewed-by: Christoph Hellwig >>>> >>>> Am I "not" supposed to use this commit id as it's not "stable" now? >>> >>> No, it's not stable yet. In whatever way you get the above commit (I = guess >>> you get it from https://github.com/hnaz/linux-mm), all acked mm-relat= ed >>> patches are sent to Linus by Andrew *by email*, so the eventual commi= t IDs >>> should be determined when they are applied to mainline. >>> >> >> Many thanks for your explanation. (I get this commit id from linux-nex= t tree: >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git) >> So I should remember always to get the commit id from mainline. >=20 > It's likely that this commit ID will be the same once Matthew's patch > goes into mainline. >=20 > But this is why we include the patch title ("mm/truncate: Inline ...") > when identifying commits. Sometimes stuff happens... I remember I used the stale commit id once in my past patch. I made this mistake again. Sorry about it. :( > . >=20