Re: Module init call vs symbols exporting race?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rusty Russell <rusty@...>
Cc: Pavel Emelyanov <xemul@...>, Linux Kernel Mailing List <linux-kernel@...>, Jon Masters <jcm@...>
Date: Friday, November 9, 2007 - 12:06 pm

On Thu, 2007-11-08 at 13:10 +1100, Rusty Russell wrote:

Digging through the module loader I found what triggers the error...

CPU0 (sys_init_module for qdio)			CPU1 (sys_init_module for qeth)

mutex_lock()
-> load_module()
     mod->state = COMING
mutex_unlock()
						mutex_lock()
init().......takes some time			load_module()
						-> resolve_symbols()
						   -> use_module()
						      -> stong_try_module_get() bails out
							 because state == COMING
						-> simplify_symbols() complains with the warning

mutex_lock()
mod->state = LIVE
mutex_unlock()

So is it correct that sys_init_module() is called for qeth even if qdio is
not yet in MODULE_STATE_LIVE?

-jang

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Module init call vs symbols exporting race?, Pavel Emelyanov, (Tue Nov 6, 5:20 am)
Re: Module init call vs symbols exporting race?, Rusty Russell, (Tue Nov 6, 8:41 am)
Re: Module init call vs symbols exporting race?, Jan Glauber, (Wed Nov 7, 6:01 am)
Re: Module init call vs symbols exporting race?, Andi Kleen, (Sat Nov 10, 4:23 pm)
Re: Module init call vs symbols exporting race?, Rusty Russell, (Wed Nov 7, 10:10 pm)
Re: Module init call vs symbols exporting race?, Jan Glauber, (Fri Nov 9, 12:06 pm)
Re: Module init call vs symbols exporting race?, Jon Masters, (Fri Nov 9, 7:44 am)
Re: Module init call vs symbols exporting race?, Jan Glauber, (Fri Nov 9, 8:16 am)
Re: Module init call vs symbols exporting race?, Rusty Russell, (Sat Nov 10, 3:27 am)
Re: Module init call vs symbols exporting race?, Jan Glauber, (Mon Nov 12, 10:03 am)