Messages in this thread | | | Date | Wed, 24 Feb 2010 22:13:54 +0200 | From | Alexey Dobriyan <> | Subject | Re: [PATCH 07/10] module: __rcu annotations |
| |
On Wed, Feb 24, 2010 at 09:04:03PM +0100, Arnd Bergmann wrote: > @@ -360,10 +360,12 @@ struct module *find_module(const char *name) > { > struct module *mod; > > - list_for_each_entry(mod, &modules, list) { > + rcu_read_lock(); > + list_for_each_entry_rcu(mod, &modules, list) { > if (strcmp(mod->name, name) == 0) > return mod; > } > + rcu_read_unlock(); > return NULL; > } > EXPORT_SYMBOL_GPL(find_module);
modules list is under module_mutex, nothing should be done here.
| |