From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A7D6C11F65 for ; Wed, 30 Jun 2021 13:48:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 79C2161625 for ; Wed, 30 Jun 2021 13:48:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235770AbhF3Nu6 (ORCPT ); Wed, 30 Jun 2021 09:50:58 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:32958 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235438AbhF3NuD (ORCPT ); Wed, 30 Jun 2021 09:50:03 -0400 Date: Wed, 30 Jun 2021 13:47:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1625060853; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BmrCEHzPuZ2P33HLKLlbSmPtl64zirpK9AIyrAiF7uM=; b=fEQb9kJRu2pOpAUdl72AcZdeuMHWQupU/UoqglRPXSgCrfaizAGsqiHCadbEVXtnV05TGR qLOllQY9jxISU8rMDYB74SqBV4HWk0US45vUTk66ILWT+DRZEWx4iTfXRrYbosDnNKwnO3 Bh04UJCnIxOuD/uOhiFtt+9YwInN6P2oW0+9a8ZpPtzyxHcrzRroSJHEumcuGwQmQ5gmLk H8DVo/KCQW4H4d8RHZyf3kHgbeDa/SUn+kIZFCf2kjUocU8ebuJS3dBCGX8QAiLCX80NTc NyHZM3D1vOjJU/O8N2lORMozqSU6xFhkym4ooFxMNTpEI9/NF8aJKSpaSYXBhw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1625060853; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BmrCEHzPuZ2P33HLKLlbSmPtl64zirpK9AIyrAiF7uM=; b=vC21HuOxQGqU7eEcluH8qrcKa54vta739knrAPw+A0AdX+Q9KjHw8ZsEoaArbLEvQe8qyS 06aCrvirSf13z2Dg== From: "tip-bot2 for Paul E. McKenney" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/rcu] rcu: Restrict RCU_STRICT_GRACE_PERIOD to at most four CPUs Cc: "Paul E. McKenney" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <162506085275.395.50984527438365289.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/rcu branch of tip: Commit-ID: 4d80b8e196fad9852050f3c8624eea09a6bbeada Gitweb: https://git.kernel.org/tip/4d80b8e196fad9852050f3c8624eea09a6bbeada Author: Paul E. McKenney AuthorDate: Wed, 07 Apr 2021 15:21:32 -07:00 Committer: Paul E. McKenney CommitterDate: Mon, 10 May 2021 16:22:54 -07:00 rcu: Restrict RCU_STRICT_GRACE_PERIOD to at most four CPUs Kernels built with CONFIG_RCU_STRICT_GRACE_PERIOD=y can experience significant lock contention due to RCU's resulting focus on ending grace periods as soon as possible. This is OK, but only if there are not very many CPUs. This commit therefore puts this Kconfig option off-limits to systems with more than four CPUs. Signed-off-by: Paul E. McKenney --- kernel/rcu/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/Kconfig.debug b/kernel/rcu/Kconfig.debug index 1942c1f..4fd6499 100644 --- a/kernel/rcu/Kconfig.debug +++ b/kernel/rcu/Kconfig.debug @@ -116,7 +116,7 @@ config RCU_EQS_DEBUG config RCU_STRICT_GRACE_PERIOD bool "Provide debug RCU implementation with short grace periods" - depends on DEBUG_KERNEL && RCU_EXPERT + depends on DEBUG_KERNEL && RCU_EXPERT && NR_CPUS <= 4 default n select PREEMPT_COUNT if PREEMPT=n help