]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "module: drop the lock while waiting for module to complete initialization."
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 23:48:30 +0000 (16:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 23:48:30 +0000 (16:48 -0700)
commit3d014d494f7432216b05e80c21734b566ee9d381
tree36ba694491fa39fbde719b889a89cadbedd1f357
parent550882ad709a21867e5e58f9e275f1dc2b37fb63
Revert "module: drop the lock while waiting for module to complete initialization."

This reverts commit 070e42539e3e545c2631235efdb98f887f74c005, since
Rafael reports that it causes occasional kernel paging request faults in
load_module().

Dropping the module lock and re-taking it deep in the call-chain is
definitely not the right thing to do.  That just turns the mutex from a
lock into a "random non-locking data structure" that doesn't actually
protect what it's supposed to protect.

Requested-and-tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Brandon Philips <brandon@ifup.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/module.c