diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-03-10 19:43:52 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-11 02:01:19 +0100 |
commit | 6c5db22d280302c33dafb309c25bf2841fb99c37 (patch) | |
tree | 0d3711b8a32646f52eca5015447256a30bc96a88 /kernel/cpu.c | |
parent | hugetlb: correct page count for surplus huge pages (diff) | |
download | linux-6c5db22d280302c33dafb309c25bf2841fb99c37.tar.xz linux-6c5db22d280302c33dafb309c25bf2841fb99c37.zip |
modules: fix module waiting for dependent modules' init
Commit c9a3ba55 (module: wait for dependent modules doing init.) didn't quite
work because the waiter holds the module lock, meaning that the state of the
module it's waiting for cannot change.
Fortunately, it's fairly simple to update the state outside the lock and do
the wakeup.
Thanks to Jan Glauber for tracking this down and testing (qdio and qeth).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions