kernel: disable CONFIG_RCU_EXPERT and friends
authorRui Salvaterra <rsalvaterra@gmail.com>
Sun, 22 Aug 2021 13:50:07 +0000 (14:50 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 29 Aug 2021 15:03:38 +0000 (17:03 +0200)
Based on the existing documentation [1][2], I dare anyone to demonstrate that
we need to fine-tune these RCU parameters. The (performance) breakage potential
for doing so is immense, so let's just please put down this loaded footgun.

Disable CONFIG_RCU_EXPERT and its dependent symbols. Additionally, remove the
CONFIG_RCU_EXPERT symbol from the target kconfigs which contain it.

[1] https://www.kernel.org/doc/Documentation/RCU/Design/Data-Structures/Data-Structures.html
[2] https://lwn.net/Articles/777214/

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
14 files changed:
target/linux/gemini/config-5.10
target/linux/gemini/config-5.4
target/linux/generic/config-5.10
target/linux/generic/config-5.4
target/linux/ipq807x/config-default
target/linux/layerscape/armv7/config-5.4
target/linux/layerscape/armv8_64b/config-5.4
target/linux/mediatek/mt7623/config-5.10
target/linux/oxnas/ox810se/config-default
target/linux/oxnas/ox820/config-default
target/linux/rockchip/armv8/config-5.10
target/linux/rockchip/armv8/config-5.4
target/linux/tegra/config-5.10
target/linux/tegra/config-5.4

index 2382e85bea92efd2faea3c77890e0b8deb6d9757..37a7b16a25b39bc29fc133f2fc502ea083ea32a8 100644 (file)
@@ -333,7 +333,6 @@ CONFIG_PREEMPT_RCU=y
 CONFIG_PROC_PAGE_MONITOR=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RD_BZIP2=y
index 9d84571b3cfb52fddcef08cbed6d9b02ac588159..702810413c659ceb8250dd7f1dcf039a37b5b7e5 100644 (file)
@@ -369,7 +369,6 @@ CONFIG_PREEMPT_RCU=y
 CONFIG_PROC_PAGE_MONITOR=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RD_BZIP2=y
index f944f1718fa6c35493012a8feb909a42b44d7b10..91f137fbc3a50255d55e12ff197528c8b5bd78b2 100644 (file)
@@ -4631,12 +4631,8 @@ CONFIG_PWRSEQ_SIMPLE=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=60
 # CONFIG_RCU_EQS_DEBUG is not set
 # CONFIG_RCU_EXPEDITE_BOOT is not set
-CONFIG_RCU_EXPERT=y
-CONFIG_RCU_FANOUT=32
-CONFIG_RCU_FANOUT_LEAF=16
-# CONFIG_RCU_FAST_NO_HZ is not set
+# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_KTHREAD_PRIO=0
-# CONFIG_RCU_NOCB_CPU is not set
 # CONFIG_RCU_PERF_TEST is not set
 # CONFIG_RCU_REF_SCALE_TEST is not set
 # CONFIG_RCU_SCALE_TEST is not set
@@ -5995,7 +5991,6 @@ CONFIG_SYSVIPC_SYSCTL=y
 # CONFIG_TARGET_CORE is not set
 # CONFIG_TASKSTATS is not set
 # CONFIG_TASKS_RCU is not set
-CONFIG_TASKS_TRACE_RCU_READ_MB=y
 # CONFIG_TASK_XACCT is not set
 # CONFIG_TC35815 is not set
 # CONFIG_TCG_ATMEL is not set
index 45d8f0976e4590174c78d8ffd9a15791f5fb19c4..06f5e43a6dd817ab9d6e034de3a58513ce48fa16 100644 (file)
@@ -4262,12 +4262,8 @@ CONFIG_PWRSEQ_SIMPLE=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=60
 # CONFIG_RCU_EQS_DEBUG is not set
 # CONFIG_RCU_EXPEDITE_BOOT is not set
-CONFIG_RCU_EXPERT=y
-CONFIG_RCU_FANOUT=32
-CONFIG_RCU_FANOUT_LEAF=16
-# CONFIG_RCU_FAST_NO_HZ is not set
+# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_KTHREAD_PRIO=0
-# CONFIG_RCU_NOCB_CPU is not set
 # CONFIG_RCU_PERF_TEST is not set
 # CONFIG_RCU_TORTURE_TEST is not set
 CONFIG_RCU_TORTURE_TEST_SLOW_INIT_DELAY=3
index 94acb8672de3655dceb475e71ba28606af6e72d3..fc77a4995bdcdf8ff0f0aad91ae4aa09a57a165a 100644 (file)
@@ -531,7 +531,6 @@ CONFIG_QUEUED_SPINLOCKS=y
 # CONFIG_RANDOMIZE_BASE is not set
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RD_GZIP=y
index 54ac6a415222f8326be5313c9d13008754f1081d..126402d76cd7aa62947d2d5efc446ff38a35eb8a 100644 (file)
@@ -505,7 +505,6 @@ CONFIG_QORIQ_CPUFREQ=y
 CONFIG_RAS=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RD_BZIP2=y
index 2ab42c9d709a8c30ee248e2d024d8efbda9b4441..6846fc96aa420324babfb8d0f191011f74574089 100644 (file)
@@ -671,7 +671,6 @@ CONFIG_RAID6_PQ=y
 CONFIG_RAS=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RD_BZIP2=y
index 95cad157669b10859b210f61af216f054959bdb7..042f055bb233bbb67fcc9a3db0cfe6176e0e06a1 100644 (file)
@@ -509,7 +509,6 @@ CONFIG_PWM_SYSFS=y
 CONFIG_RAS=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_REGMAP=y
index 137b32a070eef380c64797116f75b01d391fc750..4d5e50cd244ec462585770b6cc0a6e2ef218b62b 100644 (file)
@@ -6,6 +6,5 @@ CONFIG_CPU_IDLE_MULTIPLE_DRIVERS=y
 CONFIG_EXT4_FS=y
 CONFIG_FS_MBCACHE=y
 CONFIG_MACH_OX810SE=y
-# CONFIG_RCU_EXPERT is not set
 # CONFIG_RCU_NEED_SEGCBLIST is not set
 # CONFIG_RCU_STALL_COMMON is not set
index b846b6ed8fcdb860e4128449f92b7cb47ee9aa04..269eb2c380c08ae3a52a51134aa81cc0d0f1f178 100644 (file)
@@ -79,7 +79,6 @@ CONFIG_PCI_MSI_IRQ_DOMAIN=y
 # CONFIG_PL310_ERRATA_769419 is not set
 CONFIG_PM_SLEEP_SMP=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RFS_ACCEL=y
index 3b03333af08ba7974a783ee86237fc8481c571cd..36a3cefaf1eadbd18734d29dc3ee4396d7bfba33 100644 (file)
@@ -483,7 +483,6 @@ CONFIG_RAS=y
 CONFIG_RATIONAL=y
 # CONFIG_RAVE_SP_CORE is not set
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RCU_TRACE=y
index d3c2cd985aafb147c88cd500e3767ab8f744b899..0a2575adbfd94baef54f4c8ebfeae7ce0f159d51 100644 (file)
@@ -463,7 +463,6 @@ CONFIG_RAS=y
 CONFIG_RATIONAL=y
 # CONFIG_RAVE_SP_CORE is not set
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_RCU_TRACE=y
index a99ff20447918ab86c34f9863b50b5ead406be5d..89d318952a011f8355dae7d9b0339103e35d6474 100644 (file)
@@ -350,7 +350,6 @@ CONFIG_PWM_TEGRA=y
 CONFIG_RAS=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_REGMAP=y
index c2868fedbee2a46843e02608229289ae9d16b93e..ce421e151a4a7fd95a45a94655294dfb6795499d 100644 (file)
@@ -343,7 +343,6 @@ CONFIG_PWM_TEGRA=y
 CONFIG_RAS=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_CPU_STALL_TIMEOUT=21
-# CONFIG_RCU_EXPERT is not set
 CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_REFCOUNT_FULL=y