From: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Lai Jiangshan <laijs@cn.fujitsu.com>,
Peter Zijlstra <peterz@infradead.org>,
tglx@linutronix.de, yrl.pp-manager.tt@hitachi.com
Subject: Re: [RFC PATCH][3.0] Tracepoint: dissociate from module mutex (v2)
Date: Thu, 11 Aug 2011 14:49:10 +0900 [thread overview]
Message-ID: <4E436D56.1090602@hitachi.com> (raw)
In-Reply-To: <1313033007.18583.283.camel@gandalf.stny.rr.com>
(2011/08/11 12:23), Steven Rostedt wrote:
> On Thu, 2011-08-11 at 12:14 +0900, Masami Hiramatsu wrote:
>> (2011/08/11 4:18), Mathieu Desnoyers wrote:
>>> Copy the information needed from struct module into a local module list
>>> held within tracepoint.c from within the module coming/going notifier.
>>>
>>> This vastly simplifies locking of tracepoint registration /
>>> unregistration, because we don't have to take the module mutex to
>>> register and unregister tracepoints anymore. Steven Rostedt ran into
>>> dependency problems related to modules mutex vs kprobes mutex vs ftrace
>>> mutex vs tracepoint mutex that seems to be hard to fix without removing
>>> this dependency between tracepoint and module mutex. (note: it should be
>>> investigated whether kprobes could benefit of being dissociated from the
>>> modules mutex too.)
>>
>> Thanks, it seems that kprobes has already mostly done that.
>> It holds module_mutex only in kprobe_optimizer. However,
>> it seems meaningless, because kprobe_mutex already protects
>> kprobe_optimizer against the kprobes module notifier.
>> Thus, a module removing will stays on the notifier until
>> the optimizer runs out. So I think we can remove that mutex lock.
>>
>
> So should I change my patch 4/5 to just remove the module_mutex?
>
> [PATCH 4/5][RFC] kprobes: Inverse taking of module_mutex with kprobe_mutex
Right, it should be changed. :-)
Thank you,
--
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com
prev parent reply other threads:[~2011-08-11 5:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 19:18 [RFC PATCH][3.0] Tracepoint: dissociate from module mutex (v2) Mathieu Desnoyers
2011-08-11 3:14 ` Masami Hiramatsu
2011-08-11 3:23 ` Steven Rostedt
2011-08-11 5:49 ` Masami Hiramatsu [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=4E436D56.1090602@hitachi.com \
--to=masami.hiramatsu.pt@hitachi.com \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=yrl.pp-manager.tt@hitachi.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