From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751319AbeBHIq3 (ORCPT ); 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 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 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