]> err.no Git - linux-2.6/commit
modules: remove modlist_lock
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 16 Jul 2007 06:41:46 +0000 (23:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:51 +0000 (09:05 -0700)
commit24da1cbff9cfce50868c2dfdcda82a68ac5cb707
tree93f0e1f0f464d62b73b14fba4a2ab9216acdc924
parent6c675bd43ccc36927c855d53d2e0042cdd1074ab
modules: remove modlist_lock

Now we always use stop_machine for module insertion or deletion, we no
longer need the modlist_lock: merely disabling preemption is sufficient to
block against list manipulation.  This avoids deadlock on OOPSen where we
can potentially grab the lock twice.

Bug: 8695
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Tobias Oed <tobiasoed@hotmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/module.c