Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758725AbaDBMgH (ORCPT ); Wed, 2 Apr 2014 08:36:07 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.229]:49103 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758289AbaDBMgG (ORCPT ); Wed, 2 Apr 2014 08:36:06 -0400 Date: Wed, 2 Apr 2014 08:36:03 -0400 From: Steven Rostedt To: Takao Indoh Cc: Rusty Russell , Masami Hiramatsu , linux-kernel@vger.kernel.org Subject: Re: [PATCH] module: Introduce MODULE_STATE_COMING_FINAL to avoid ftrace warning Message-ID: <20140402083603.051d08b0@gandalf.local.home> In-Reply-To: <1396425266-3128-1-git-send-email-indou.takao@jp.fujitsu.com> References: <1396425266-3128-1-git-send-email-indou.takao@jp.fujitsu.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Apr 2014 16:54:26 +0900 Takao Indoh wrote: > This patch adds new module state MODULE_STATE_COMING_FINAL to avoid > ftrace waring message when loading two modules simultaneously. > > The original patch was written by Steven Rostedt, see below. > https://lkml.org/lkml/2014/3/24/242 > > > This patch introduces MODULE_STATE_COMING_FINAL which means that the > module is ready to be changed to ReadOnly. By this, the modules B is not > change to RO at (2) because its state is still MODULE_STATE_COMING, so > this warning message is avoided. Module B is changed to RO in the > do_init_module() after comes back from notifier. > > Signed-off-by: Takao Indoh As I'm the original author, add my: Signed-off-by: Steven Rostedt too. -- Steve -- 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/