public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	     Rusty Russell <rusty@rustcorp.com.au>,
	     Ananth N Mavinakayanahalli <ananth@in.ibm.com>,
	     Jim Keniston <jkenisto@us.ibm.com>,
	David Miller <davem@davemloft.net>,
	     LKML <linux-kernel@vger.kernel.org>,
	     systemtap-ml <systemtap@sources.redhat.com>
Subject: Re: [PATCH 6/7] module: Add MODULE_STATE_LIVE notify
Date: Tue, 11 Nov 2008 21:11:00 -0000	[thread overview]
Message-ID: <alpine.DEB.1.10.0811111608410.3275@gandalf.stny.rr.com> (raw)
In-Reply-To: <4919F1B9.3060300@redhat.com>


On Tue, 11 Nov 2008, Masami Hiramatsu wrote:

> Add a module notifier call which notifies that the state of a module changes
> from MODULE_STATE_COMING to MODULE_STATE_LIVE.
> 
> Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
> ---
>  kernel/module.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> Steven, Ananth told me that this patch might also help to solve
> cmpxchg problem.

I'm assuming you are talking about the infamous e1000e ftrace cmpxchg
corruption bug?

In anycase, ftrace has already solved those issues, and does not use 
cmpxchg anymore.

Thanks anyway,

-- Steve


> 
> Index: 2.6.28-rc4/kernel/module.c
> ===================================================================
> --- 2.6.28-rc4.orig/kernel/module.c
> +++ 2.6.28-rc4/kernel/module.c
> @@ -2346,6 +2346,8 @@ sys_init_module(void __user *umod,
>  	/* Now it's a first class citizen!  Wake up anyone waiting for it. */
>  	mod->state = MODULE_STATE_LIVE;
>  	wake_up(&module_wq);
> +	blocking_notifier_call_chain(&module_notify_list,
> +				     MODULE_STATE_LIVE, mod);
> 
>  	mutex_lock(&module_mutex);
>  	/* Drop initial reference. */
> 
> -- 
> Masami Hiramatsu
> 
> Software Engineer
> Hitachi Computer Products (America) Inc.
> Software Solutions Division
> 
> e-mail: mhiramat@redhat.com
> 
> 
> 

      reply	other threads:[~2008-11-11 21:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11 20:58 Masami Hiramatsu
2008-11-11 21:11 ` Steven Rostedt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.1.10.0811111608410.3275@gandalf.stny.rr.com \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=ananth@in.ibm.com \
    --cc=davem@davemloft.net \
    --cc=jkenisto@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhiramat@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).