Messages in this thread | | | Date | Wed, 22 Sep 2010 14:52:02 +0200 | From | Andi Kleen <> | Subject | Re: [PATCH 1/2] Add for_each_module iterator function |
| |
> > +void for_each_module(void (*op)(struct module *, void *arg), void *arg) > > +{ > > + struct module *mod; > > + > > + preempt_disable(); > > That wants rcu_read_lock()
Thanks. It was wrong anyways for the intended use case, switched to module_mutex now.
BTW I think i copied this from somewhere else in module.c Probably should be fixed there too.
-Andi
-- ak@linux.intel.com -- Speaking for myself only.
| |