Re: [PATCH 2/2] module: fix bne2 "gave up waiting for init of module libcrc32c"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rusty Russell
Date: Monday, May 31, 2010 - 6:04 pm

On Tue, 1 Jun 2010 02:18:34 am Andrew Morton wrote:

Sorry if I was unclear.  It's all inside module.c.  Here's the updated
commentry:

 If another module is waiting inside resolve_symbol() for libcrc32c to
 finish initializing (ie. bne2 depends on libcrc32c) then it does so
 holding the module lock, and our request_module() can't make progress
 until that is released.

 Waiting inside resolve_symbol() without the lock isn't all that hard:
 we just need to pass the -EBUSY up the call chain so we can sleep
 where we don't hold the lock.  Error reporting is a bit trickier: we
 need to copy the name of the unfinished module before releasing the
 lock.

Hope that helps,
Rusty.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Regression] Crash in load_module() while freeing args, Rafael J. Wysocki, (Tue May 25, 2:00 pm)
Re: [Regression] Crash in load_module() while freeing args, Rafael J. Wysocki, (Tue May 25, 3:54 pm)
Re: [Regression] Crash in load_module() while freeing args, Linus Torvalds, (Tue May 25, 4:47 pm)
Re: [Regression] Crash in load_module() while freeing args, Linus Torvalds, (Wed May 26, 8:41 am)
Re: [Regression] Crash in load_module() while freeing args, Rafael J. Wysocki, (Wed May 26, 3:56 pm)
Re: [Regression] Crash in load_module() while freeing args, Linus Torvalds, (Wed May 26, 4:07 pm)
Re: [Regression] Crash in load_module() while freeing args, Rusty Russell, (Wed May 26, 10:26 pm)
Re: [Regression] Crash in load_module() while freeing args, Brandon Philips, (Thu May 27, 11:46 am)
Re: [Regression] Crash in load_module() while freeing args, Rafael J. Wysocki, (Thu May 27, 2:57 pm)
Re: [Regression] Crash in load_module() while freeing args, Rusty Russell, (Mon May 31, 12:54 am)
[PATCH 0/2] kernel/module.c locking changes, Rusty Russell, (Mon May 31, 5:00 am)
[PATCH 1/2] module: make locking more fine-grained., Rusty Russell, (Mon May 31, 5:01 am)
[PATCH 1/2] Make the module 'usage' lists be two-way, Linus Torvalds, (Mon May 31, 1:16 pm)
Re: [PATCH 2/2] module: fix bne2 "gave up waiting for init ..., Rusty Russell, (Mon May 31, 6:04 pm)
Re: [PATCH 1/2] Make the module 'usage' lists be two-way, Rusty Russell, (Mon May 31, 6:37 pm)
Re: [PATCH 1/2] Make the module 'usage' lists be two-way, Américo Wang, (Mon May 31, 7:44 pm)
Re: [PATCH 1/2] Make the module 'usage' lists be two-way, Rusty Russell, (Mon May 31, 8:42 pm)
Re: [PATCH 1/2] Make the module 'usage' lists be two-way, Linus Torvalds, (Mon May 31, 8:51 pm)
Re: [PATCH 1/2] Make the module 'usage' lists be two-way, Linus Torvalds, (Mon May 31, 9:00 pm)
Re: [PATCH 1/2] Make the module 'usage' lists be two-way, Linus Torvalds, (Mon May 31, 9:05 pm)
Re: [PATCH 1/2] module: make locking more fine-grained., Américo Wang, (Mon May 31, 10:38 pm)
Re: [PATCH 1/2] module: make locking more fine-grained., Rusty Russell, (Mon May 31, 10:55 pm)