]> git.baikalelectronics.ru Git - kernel.git/commit
modules: de-mutex more symbol lookup paths in the module code
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 14 Jan 2008 08:55:03 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 14 Jan 2008 16:52:22 +0000 (08:52 -0800)
commitab196b5fda16640d40e39c3c5241741dd43cf2a9
treedf35653a4ef0123c20df72f1c4355562553e9558
parent70ebe0bfda91446bd825fb8cf18b83b658318942
modules: de-mutex more symbol lookup paths in the module code

Kyle McMartin reports sysrq_timer_list_show() can hit the module mutex
from hard interrupt context.  These paths don't need to though, since we
long ago changed all the module list manipulation to occur via
stop_machine().

Disabling preemption is enough.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/module.c