Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1673272rdb; Sat, 3 Feb 2024 17:52:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBNzuBM2gB21UantPD4TVVd2m9y75C+5sMNgF58FRyDGKs//SgePCoUxxtsHmdy9GV+3wr X-Received: by 2002:a0c:e40a:0:b0:68c:9289:8fd9 with SMTP id o10-20020a0ce40a000000b0068c92898fd9mr2916834qvl.51.1707011579634; Sat, 03 Feb 2024 17:52:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707011579; cv=pass; d=google.com; s=arc-20160816; b=G6jP/ho3FoykiI94NKb7HMjb7BpDvrNmciSi69CgT+yFx9mD7wXPYxiz6WfHiw22iM alMvGTGIhK4nc3fbpaMEzaw4yqi+k7w+rw0ZutowpJxZ7TULmrGLX7KVbVqFO/5RPP3o /Omr/o5/z2HYi4Umxj+2yzZ7XlSXNv9SwJzE3EMqtKxIBOTqoRjuMM1+ehOOYahUJ/k4 cfD47H2je8nVK4jWOddoOsWrnNzgFwdlUYHcCKZUvmTT6V612GI1RVmhJuET37bbOXyt bPzH+Qmup+LLT8lpfCu8EP862u7ya2cGhKg0eEPie8iUnOV40hzBwGSe1S4XnAdMx5iM NXZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=ZUf8nyeaLrZCrfsK204Gc/Zf60Wn0W6E9wqVnaj2u+s=; fh=EEgBos2gh7P4RpGUIWQljPBzVGwfwC9tvvxL2ZR5ERs=; b=uBlhq0fFH8hhoLRebffSw1As9Cv3qbAoUnZKgGQiUx0S7akTRKbXm86oBCZfcarR76 5kmXXjwGscmz+9y4/dwI2PdLY85at/wt39SCZnfyxge8BBaciuJpiJfbX7vCxGIY0FpQ uTAsWASuoe3t7hMjwgOww5ocWd9QoqPOamoJQQl2vdh0AUvfBgcsRJgSQeSMmL7+18wi Cqcn+leD9oUgkMJMHJT3C37zpLeLlzf9Ic3O8l/2452XmtHuOgeYwXNOH9xpmkik6tGP OHCJ8Gru6lIUxxZvq6CPwaDWX/ysk+zSuMthk275GELqzDQdrdW65U9ug0OGo0iqaFjZ HmaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-51372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCU1XbSx8sZtl5U4qZld4t9yV3TFcAyvyjjLI/E7MT70Dqc3cRUQ4JdgOaHnnfEu0vLi38G6xxFftiPxchlEQsMAHI2KucMwtbSWLx00QQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t2-20020a0cf982000000b0068c4ed35d85si5330037qvn.23.2024.02.03.17.52.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 17:52:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-51372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5939F1C2315D for ; Sun, 4 Feb 2024 01:52:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 380A410F7; Sun, 4 Feb 2024 01:52:53 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C136F10EB; Sun, 4 Feb 2024 01:52:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707011572; cv=none; b=pxXhzkz+TtuPBhlNln7LUwXVuhSmkzVp8Nk7nR/9/YRtkCn/NiVIqfPl7hK3WKejeAYTWHXG0a6Zyx67+QgEZD5uPDUVAV2CqAJMbBBySXyC133f8XgBR8+5Pb8ZOufuu8OdzMzc1fNI0IWu2WafZzjpAOlwkm1BplxZBcIdEok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707011572; c=relaxed/simple; bh=oE4L/+SIwj1YnhEh0Z69Zeulu/L7Qo8g7er8gO/zOX0=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ZySGn02cb9TZ/eFl0j93oE7LRuAA3LQN+Gd6+L/KnynEwEQTi4YISxoJzHycaxjTh3IdcvwoUFp3oxKdtPnfMkwfNp24M0a5CIXkxHQeAoRyPQD7RSCquVdjJlQpA6vF9F8sEtu/H/OkwgfDGYk7PX4sqz1jhaZsuU0IbPMtgNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4TSCCt3V3Nz1Q8gk; Sun, 4 Feb 2024 09:51:22 +0800 (CST) Received: from kwepemm600017.china.huawei.com (unknown [7.193.23.234]) by mail.maildlp.com (Postfix) with ESMTPS id 1D9D31404FE; Sun, 4 Feb 2024 09:52:39 +0800 (CST) Received: from [10.174.179.234] (10.174.179.234) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 4 Feb 2024 09:52:37 +0800 Message-ID: <90576a70-9ab3-dca7-f5cc-67e430dbe460@huawei.com> Date: Sun, 4 Feb 2024 09:52:36 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH -next v4 2/3] x86/mce: rename MCE_IN_KERNEL_COPYIN to MCE_IN_KERNEL_COPY_MC To: Borislav Petkov CC: "Luck, Tony" , Thomas Gleixner , Ingo Molnar , "wangkefeng.wang@huawei.com" , Dave Hansen , "x86@kernel.org" , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Andrew Morton , Naoya Horiguchi , "linux-kernel@vger.kernel.org" , "linux-edac@vger.kernel.org" , "linux-mm@kvack.org" , Guohanjun References: <3009aadd-69d6-c797-20b4-95cf926b6dd9@huawei.com> <20240201142016.GFZbuooG9CRoK90U2C@fat_crate.local> <39c1e4d2-b1d0-91ae-595e-1add4698dd7f@huawei.com> <20240202133911.GBZbzwf-M37M-J3EJX@fat_crate.local> <20240202194257.GFZb1FwcPPO8WXF86H@fat_crate.local> <20240202222220.GIZb1rHG3NiZKmdRXu@fat_crate.local> <4d974c1e-b3a8-8b21-88f4-e5f20b2fb654@huawei.com> <20240203094309.GDZb4KrS2GWa5XtGeZ@fat_crate.local> From: Tong Tiangen In-Reply-To: <20240203094309.GDZb4KrS2GWa5XtGeZ@fat_crate.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600017.china.huawei.com (7.193.23.234) 在 2024/2/3 17:43, Borislav Petkov 写道: > On Sat, Feb 03, 2024 at 03:56:04PM +0800, Tong Tiangen wrote: >> The goal of this patch: >> When #MC is triggered by copy_mc_user_highpage(), #MC is directly >> processed in the synchronously triggered do_machine_check() -> >> kill_me_never() -> memory_failure(). >> >> And the current handling is to call memory_failure_queue() -> >> schedule_work_on() in the execution context, I think that's what >> "scheduling someone else to handle it at some future point is risky." > > Ok, now take everything that was discussed on the thread and use it to > rewrite all your commit messages to explain *why* you're doing this, not > *what* you're doing - that is visible from the diff. > > A possible way to structure them is: > > 1. Prepare the context for the explanation briefly. > > 2. Explain the problem at hand. > > 3. "It happens because of <...>" > > 4. "Fix it by doing X" > > 5. "(Potentially do Y)." > > And some of those above are optional depending on the issue being > explained. > > For more detailed info, see > Documentation/process/submitting-patches.rst, > Section "2) Describe your changes". > > Also, to the tone, from Documentation/process/submitting-patches.rst: > > "Describe your changes in imperative mood, e.g. "make xyzzy do frotz" > instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy > to do frotz", as if you are giving orders to the codebase to change > its behaviour." > > Also, do not talk about what your patch does - that should (hopefully) be > visible from the diff itself. Rather, talk about *why* you're doing what > you're doing. OK, will improved next version. Thank. Tong. > > Thx. >