lkml.org 
[lkml]   [2014]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] modules, lock around setting of MODULE_STATE_UNFORMED
On 10/08, Prarit Bhargava wrote:
>
> --- a/kernel/module.c
> +++ b/kernel/module.c
> @@ -1842,7 +1842,9 @@ static void free_module(struct module *mod)
>
> /* We leave it in list to prevent duplicate loads, but make sure
> * that noone uses it while it's being deconstructed. */
> + mutex_lock(&module_mutex);
> mod->state = MODULE_STATE_UNFORMED;
> + mutex_unlock(&module_mutex);
>
> /* Remove dynamic debug info */
> ddebug_remove_module(mod->name);

Reviewed-by: Oleg Nesterov <oleg@redhat.com>



\
 
 \ /
  Last update: 2014-10-08 17:21    [W:0.048 / U:1.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site