aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2007-05-23 16:57:41 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-23 23:14:12 -0400
commit9aaffc898ff4a3df18c5fc4b9e0fa47e779ad726 (patch)
tree184caf9ce53a2b107d0fc89b3f90efbf9cc5c515 /lib
parentcf6acedbeac17dea1c1eed85048a72e188f3f768 (diff)
prohibit rcutorture from being compiled into the kernel
There have been a number of instances where people have accidentally compiled rcutorture into the kernel (CONFIG_RCU_TORTURE_TEST=y), which has never been useful, and has often resulted in great frustration. The attached patch prohibits rcutorture from being compiled into the kernel. It may be excluded altogether or compiled as a module. People wishing to have rcutorture hammer their machine immediately upon boot are free to hand-edit lib/Kconfig.debug to remove the "depends on m" line. Thanks to Randy Dunlap for the trick that makes this work. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Josh Triplett <josh@kernel.org> Cc: "Randy.Dunlap" <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index fbc5c622acb0..1ba77ca7d165 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -378,14 +378,13 @@ config FORCED_INLINING
378config RCU_TORTURE_TEST 378config RCU_TORTURE_TEST
379 tristate "torture tests for RCU" 379 tristate "torture tests for RCU"
380 depends on DEBUG_KERNEL 380 depends on DEBUG_KERNEL
381 depends on m
381 default n 382 default n
382 help 383 help
383 This option provides a kernel module that runs torture tests 384 This option provides a kernel module that runs torture tests
384 on the RCU infrastructure. The kernel module may be built 385 on the RCU infrastructure. The kernel module may be built
385 after the fact on the running kernel to be tested, if desired. 386 after the fact on the running kernel to be tested, if desired.
386 387
387 Say Y here if you want RCU torture tests to start automatically
388 at boot time (you probably don't).
389 Say M if you want the RCU torture tests to build as a module. 388 Say M if you want the RCU torture tests to build as a module.
390 Say N if you are unsure. 389 Say N if you are unsure.
391 390