lkml.org 
[lkml]   [2017]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kprobes, x86/alternatives: use text_mutex to protect smp_alt_modules
On Mon, 30 Oct 2017 17:03:23 +0900
Masami Hiramatsu <mhiramat@kernel.org> 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

\
 
 \ /
  Last update: 2017-10-31 23:00    [W:0.885 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site