Re: [PATCH] kprobes, x86/alternatives: use text_mutex to protect smp_alt_modules
From: Steven Rostedt
Date: Tue Oct 31 2017 - 17:59:36 EST
On Mon, 30 Oct 2017 17:03:23 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
> > static LIST_HEAD(smp_alt_modules);
> > -static DEFINE_MUTEX(smp_alt);
> > -static bool uniproc_patched = false; /* protected by smp_alt */
> > +static bool uniproc_patched = false; /* protected by text_mutex */
We should also add a comment somewhere by the text_mutex that it is
protecting this on x86.
-- Steve