Peter Zijlstra <[email protected]> writes: > On Wed, Aug 06, 2014 at 05:12:24AM +0800, Fengguang Wu wrote: >> Greetings, >> >> Here is a microcode/load_module error triggered by debug check commit >> 64c2181bc433b17f04da8fe8592aa83cceac9606 ("sched: Debug nested >> sleeps"):
Hmm, google lead me to that. Yuck, that's subtle. > Cc: Rusty Russell <[email protected]> > Reported-by: Fengguang Wu <[email protected]> > Signed-off-by: Peter Zijlstra <[email protected]> > Link: http://lkml.kernel.org/n/[email protected] > --- > kernel/module.c | 26 ++++++++++++++++++++++++-- > 1 file changed, 24 insertions(+), 2 deletions(-) > > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -3094,6 +3094,28 @@ static int may_init_module(void) > return 0; > } > > +int wait_finished_loading(struct module *mod) > +{ Is this something we can generalize? At least needs a comment on why we don't just use the normal wait_event_interruptible... Cheers, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

