Skip to content

Commit c4a09ff

Browse files
committed
rcu: Remove the now-obsolete PROVE_RCU_REPEATEDLY Kconfig option
The PROVE_RCU_REPEATEDLY Kconfig option was initially added due to the volume of messages from PROVE_RCU: Doing just one per boot would have required excessive numbers of boots to locate them all. However, PROVE_RCU messages are now relatively rare, so there is no longer any reason to need more than one such message per boot. This commit therefore removes the PROVE_RCU_REPEATEDLY Kconfig option. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@kernel.org>
1 parent 4e4bea7 commit c4a09ff

5 files changed

Lines changed: 1 addition & 23 deletions

File tree

‎kernel/locking/lockdep.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4490,10 +4490,6 @@ void lockdep_rcu_suspicious(const char *file, const int line, const char *s)
44904490
{
44914491
struct task_struct *curr = current;
44924492

4493-
#ifndef CONFIG_PROVE_RCU_REPEATEDLY
4494-
if (!debug_locks_off())
4495-
return;
4496-
#endif /* #ifdef CONFIG_PROVE_RCU_REPEATEDLY */
44974493
/* Note: the following can be executed concurrently, so be careful. */
44984494
pr_warn("\n");
44994495
pr_warn("=============================\n");

‎kernel/rcu/tree_plugin.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ static void __init rcu_bootup_announce_oddness(void)
7979
pr_info("\tHierarchical RCU autobalancing is disabled.\n");
8080
if (IS_ENABLED(CONFIG_RCU_FAST_NO_HZ))
8181
pr_info("\tRCU dyntick-idle grace-period acceleration is enabled.\n");
82-
if (IS_ENABLED(CONFIG_PROVE_RCU_REPEATEDLY))
83-
pr_info("\tRCU lockdep checking is permanently enabled.\n");
84-
else if (IS_ENABLED(CONFIG_PROVE_RCU))
82+
if (IS_ENABLED(CONFIG_PROVE_RCU))
8583
pr_info("\tRCU lockdep checking is enabled.\n");
8684
if (RCU_NUM_LVLS >= 4)
8785
pr_info("\tFour(or more)-level hierarchy is enabled.\n");

‎lib/Kconfig.debug‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,20 +1306,6 @@ menu "RCU Debugging"
13061306
config PROVE_RCU
13071307
def_bool PROVE_LOCKING
13081308

1309-
config PROVE_RCU_REPEATEDLY
1310-
bool "RCU debugging: don't disable PROVE_RCU on first splat"
1311-
depends on PROVE_RCU
1312-
default n
1313-
help
1314-
By itself, PROVE_RCU will disable checking upon issuing the
1315-
first warning (or "splat"). This feature prevents such
1316-
disabling, allowing multiple RCU-lockdep warnings to be printed
1317-
on a single reboot.
1318-
1319-
Say Y to allow multiple RCU-lockdep warnings per boot.
1320-
1321-
Say N if you are unsure.
1322-
13231309
config SPARSE_RCU_POINTER
13241310
bool "RCU debugging: sparse-based checks for pointer usage"
13251311
default n

‎tools/testing/selftests/rcutorture/configs/rcu/TINY02‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ CONFIG_NO_HZ_IDLE=n
88
CONFIG_NO_HZ_FULL=n
99
CONFIG_RCU_TRACE=y
1010
CONFIG_PROVE_LOCKING=y
11-
CONFIG_PROVE_RCU_REPEATEDLY=y
1211
#CHECK#CONFIG_PROVE_RCU=y
1312
CONFIG_DEBUG_LOCK_ALLOC=y
1413
CONFIG_DEBUG_OBJECTS=y

‎tools/testing/selftests/rcutorture/doc/TREE_RCU-kconfig.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CONFIG_NO_HZ_FULL -- Do two, one with partial CPU enablement.
1313
CONFIG_PREEMPT -- Do half. (First three and #8.)
1414
CONFIG_PROVE_LOCKING -- Do several, covering CONFIG_DEBUG_LOCK_ALLOC=y and not.
1515
CONFIG_PROVE_RCU -- Hardwired to CONFIG_PROVE_LOCKING.
16-
CONFIG_PROVE_RCU_REPEATEDLY -- Do one.
1716
CONFIG_RCU_BOOST -- one of PREEMPT_RCU.
1817
CONFIG_RCU_FANOUT -- Cover hierarchy, but overlap with others.
1918
CONFIG_RCU_FANOUT_LEAF -- Do one non-default.

0 commit comments

Comments
 (0)