From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117AbdJ0I1w (ORCPT ); Fri, 27 Oct 2017 04:27:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:53073 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070AbdJ0I1t (ORCPT ); Fri, 27 Oct 2017 04:27:49 -0400 Date: Fri, 27 Oct 2017 10:27:45 +0200 From: Borislav Petkov To: zhouchengming Cc: mingo@redhat.com, tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, jkosina@suse.cz, rostedt@goodmis.org, mjurczyk@google.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/alternatives: free smp_alt_modules when enable smp Message-ID: <20171027082745.GC1305@nazgul.tnic> References: <1509088692-9971-1-git-send-email-zhouchengming1@huawei.com> <20171027074912.GB1305@nazgul.tnic> <59F2EA25.1080903@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <59F2EA25.1080903@huawei.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 27, 2017 at 04:11:17PM +0800, zhouchengming wrote: > So why not take the quick way like we do in > alternatives_smp_module_add() ? Because 1. there's no real problem with the current state 2. the current way is cleaner as it keeps that code away in module_arch_cleanup(). -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --