Received: by 10.223.176.5 with SMTP id f5csp1644502wra; Thu, 8 Feb 2018 00:47:24 -0800 (PST) X-Google-Smtp-Source: AH8x225ELm0ItCOaNDIVtlgSbS26k8VUe9M56x2rJiq+9KTgfDtqpMODax+TuGdKAC7ExWF//JP4 X-Received: by 2002:a17:902:4101:: with SMTP id e1-v6mr8929806pld.332.1518079644214; Thu, 08 Feb 2018 00:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518079644; cv=none; d=google.com; s=arc-20160816; b=oVz7PMY+Ug8/WiNKb0SoQeLGa9nUS5zhtiBDs8wkkY9tZB6HvsNRaxqZNBJGtXR3IU u11nqsSAHGAe5yzNG6lfqsqtvNgxrSOWF90HA6vF/mWXs60bDhvWFQB3O2E0u6EqZHNn M784UHIpiff+gm/845emEYeTu91/HHODaizpA8uNpt3Peo3O8qPaGNDaWp37X1tuPsiS CFRcYmgm5UD8DK9DtqMx2QJz3pLvQq7tBQQ3WxLTMCi1qcDcl1/TUCigLus/VxNOdFe0 GvRjIuVYJqlVmQzpV8tOixgGhU9dCoG17MJ2GV7RP+5iraqu512av808QwU4fW9YappV EDdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=3y4uWBTgRGDgNN9F1cqduMxALbiayelW5iRaKtdWZzk=; b=G0f3Zv28M6VORYDTqjv4krkuPaZICDvNc8DORUS4oN8r06pv1ISSR7SNM/mvmU3l6V U35IgrayEGZ36VLS/9jZOWX9d99cBYDiqSfWgtGBwQxpY8e1ujOvQzzhwV8meHDnzzKa Hdfzc4qBqJ1SMNuO0V1REFuhX0uW0OQsGhfMBSoViysrwUZzWEdlEDooLwUVGWutwSsS bXrTfy34/6x7VWsGRSaBZ6Y2uov1uRbdNz+tcig40VRG0DdZWA4tdJzs5q70Ff9+1jiw azo2YoiN7KMq8Fj8MCC4sTOFGPfWhqgq6i9MdGSPMTpPA4qTPK3lgEiHw20nb3nFAV0Q XNZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si849367pgu.218.2018.02.08.00.47.09; Thu, 08 Feb 2018 00:47:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751175AbeBHIq3 (ORCPT + 99 others); Thu, 8 Feb 2018 03:46:29 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:33120 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750865AbeBHIq2 (ORCPT ); Thu, 8 Feb 2018 03:46:28 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8D7C8F051062C; Thu, 8 Feb 2018 16:46:14 +0800 (CST) Received: from [127.0.0.1] (10.177.19.210) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.361.1; Thu, 8 Feb 2018 16:46:05 +0800 Subject: Re: [PATCH v5 2/3] GHES: add a notify chain for process memory section To: Borislav Petkov References: <1516969885-150532-1-git-send-email-xiexiuqi@huawei.com> <1516969885-150532-3-git-send-email-xiexiuqi@huawei.com> <20180207103145.GC8944@pd.tnic> CC: , , , , , , , , , , , , , , , , , , , , , , , , From: Xie XiuQi Message-ID: Date: Thu, 8 Feb 2018 16:41:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20180207103145.GC8944@pd.tnic> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.19.210] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, Thanks for your comments. On 2018/2/7 18:31, Borislav Petkov wrote: > On Fri, Jan 26, 2018 at 08:31:24PM +0800, Xie XiuQi wrote: >> Add a notify chain for process memory section, with >> which other modules might do error recovery. >> >> Signed-off-by: Xie XiuQi >> Tested-by: Wang Xiongfeng >> Tested-by: Tyler Baicar >> --- >> drivers/acpi/apei/ghes.c | 10 ++++++++++ >> include/acpi/ghes.h | 8 ++++++++ >> 2 files changed, 18 insertions(+) >> >> diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c >> index cff671d..1f0ebfb 100644 >> --- a/drivers/acpi/apei/ghes.c >> +++ b/drivers/acpi/apei/ghes.c >> @@ -109,6 +109,9 @@ static inline bool is_hest_type_generic_v2(struct ghes *ghes) >> static LIST_HEAD(ghes_hed); >> static DEFINE_MUTEX(ghes_list_mutex); >> >> +ATOMIC_NOTIFIER_HEAD(ghes_mem_err_chain); >> +EXPORT_SYMBOL(ghes_mem_err_chain); > > Definitely not EXPORT_SYMBOL. > > And certainly not export the notifier head. Have register and unregister > functions instead. > > That is, *if* you can't solve it differently with James. Notifiers > should be avoided if possible. > Yes, I saw the patchset, I agree. I will work with James to solve the problem. -- Thanks, Xie XiuQi