Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752124AbbHaBgn (ORCPT ); Sun, 30 Aug 2015 21:36:43 -0400 Received: from ozlabs.org ([103.22.144.67]:47260 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbbHaBgm (ORCPT ); Sun, 30 Aug 2015 21:36:42 -0400 From: Rusty Russell To: "Frank Ch. Eigler" Cc: linux-kernel@vger.kernel.org Subject: Re: timing of module MODULE_STATE_COMING notifier In-Reply-To: <20150831000642.GG29756@redhat.com> References: <20150831000642.GG29756@redhat.com> User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Mon, 31 Aug 2015 11:06:22 +0930 Message-ID: <87si70p7c9.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1263 Lines: 32 "Frank Ch. Eigler" writes: > Hi, Rusty - > > We just [1] came across your patch [2] from last year (merged into > 3.17), wherein the RO/NX mapping settings for module sections were > moved to an earlier point in the module-loading sequence. > > That patch also moved the MODULE_STATE_COMING notifier call to > complete_formation(), which is relatively early to its former > do_init_module() call site. It now precedes the parse_args(), > mod_sysfs_setup(), and trace_module_load() steps. Yes, parse_args() can enter the module, so you really want it before then. > Was the latter part of the change intended & necessary? It is > negatively impacting systemtap, which was relying on > MODULE_STATE_COMING being called from a fairly complete module state - > just before the actual initializer function call. Notifiers suck for stuff like this :( Module state has many steps, so my preference has been to open-code explicit hooks. This would seem to reinforce that preference... Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/