Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp399873lqh; Tue, 7 May 2024 02:40:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUITDMnpmSs2EmbZH2hPrJPpvbgfMD4ng8ISkX8YH6wHJJTm5Ds8jYBrH/tUiwgD5UFCqe+tMOzrNcxLBN/cLhxBItvh+aL/KHP6oQ2dA== X-Google-Smtp-Source: AGHT+IE9G9xzHqGl3kyccYE48PAqJnA+212HIwNP+2O0zWYIycbpwp4sG8InwLBP5jisCQIjSFfq X-Received: by 2002:a50:d741:0:b0:56e:23e3:bdc2 with SMTP id i1-20020a50d741000000b0056e23e3bdc2mr10891258edj.13.1715074804306; Tue, 07 May 2024 02:40:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715074803; cv=pass; d=google.com; s=arc-20160816; b=frhlxUEviI0dZtRMcCW0jWUDCZBrLzLinT8KqcEXXC6eqVoCYLhyQK45mCG1VSZ9X7 aNRRYL59yvoHSXRiNh7SoGaLxRzEyRDi3IPgKWTEYv3yb+URvV5IBZUIHsp+Kt+LyURa kqDMB0/5hvEstlXQFfnVnMJ9G9cNinbL5I7+noRNwJUJP8yA+rfiHy5sWd3k37HUFRE2 6zD8WTZReNbvXRadQ+C9sH0jVDWsxGriP4Zai+TOr5qP9r/m9G/4tIVowLgMi0kwCaM5 quyRnCvjOpozwax+vQeu3X+/GPV1jU0NvCCqHe3abVnqcHj5xNbhby2Gpz+5cRuy/EGi 6puw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yNkYNx/ZpQTIkDY1eBLed5ZhKwlCgOHBgpZcacIwxtE=; fh=djF1uKUFaKOjICP0IKMoUsx6GPtTmB2feBxDzSKg39E=; b=e01L/d09Y6ByCpoX2n9uPwZVoK0cN8xxA2lS603DDA2Kgd9SZv0I2SYis62zv5z6uz G3TpDtqy7DeIkTBus5qkauxf1yfxuU1WA42Q1g+E47H5dmlcJsk/+5nxFwHYJIdyKz9B VN3pJQbiKSdViNKQof3cyLF5iaWbg0hw8ZTmvBDtBkir0LM+gfryNji5tiV8eWfko6t/ GMLs9iQYluaTCk621x0cUmDo4VCcBGGL11IL40ewnWb+bbajUQtaHpBRmxJlD21OloLl cRJvAuNAsICOGQS78Rktj8S8rOBz9O6izFyC9jbr0cpz/V5Oo/QiIxCsfxRuyy2S08c2 VKpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M3+BwMt4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-170977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dg14-20020a0564021d0e00b005726895c6fdsi5818222edb.402.2024.05.07.02.40.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:40:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M3+BwMt4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-170977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 811301F22566 for ; Tue, 7 May 2024 09:40:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D19AE15E5CB; Tue, 7 May 2024 09:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M3+BwMt4" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B4E315DBCC; Tue, 7 May 2024 09:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074553; cv=none; b=BEBhY4SdqgLZlcgDwKCgnDGb4crfuCV6IjBHW3pnsEhtG+pkvcJ7IGo/eno2qBngEZOKDeNjdICMvCezi9zMM9pSG7dMTyZY2hST32thHQFU77+fTqSO69//9VckwU7xWEfVFTHrySltGHycIKGug1dlOe2k0Lut8uNcAcPVEtc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074553; c=relaxed/simple; bh=CQi6omiuMOIdje2fZYB1jOQAZbYXL+rdG54y+ely1xA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R2bHyvibTl9XZB+Ct6bjjkKfQuoYrwrzBaUJQOs9FzQkmuzP+ny3PZJz2pfMHz/XXzVHS56toX8hMHqijzESqim2x2aXnP5tdeFJe5LfuIgdSylAMzJIZKyKI/FKwum9UrjL9s0AopsfQx5BTsh7lVheqn8H6ucBWqYg+aiEcL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=M3+BwMt4; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2e3e18c240fso8454661fa.0; Tue, 07 May 2024 02:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715074550; x=1715679350; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yNkYNx/ZpQTIkDY1eBLed5ZhKwlCgOHBgpZcacIwxtE=; b=M3+BwMt4pyRqxhOgICZ8yIM+IWmXsOm6eki6C1CEBJfF6mhgpkq5gHv+lxj5y5aFPx ajIQG/eWNzEv/k2M+lrY1PMsXe+TNEga77yK4rgFQbd4+dkT0V50IWLRjlGVU017Iuvu 4xQLEkZym7xGpq3vsk84h0aFkXNHtFi+z/Nrxk5l68BYC4Uk2FUy+u7CwwfovzXwe6Y1 XEGEWP01Qgr+meDHon1+37OvpClJWTgbxJqyPXSU+L/Ud9Bqx1B6mZIipcEv3k5gPYUW 2ZLkElpc2Srq9ekOBFighDD6zohEMKH4vu4/oENv8reR25zft048QGvaJTsJ3FiweR0X YKUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715074550; x=1715679350; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yNkYNx/ZpQTIkDY1eBLed5ZhKwlCgOHBgpZcacIwxtE=; b=ee/iwwbdK2xklxJ7+E0kVGMXt+sMGOqcy+farzfagS7KdIBp5PMqqVoWkLjsxzlOIB 4ZhXbXR+1X11o3Ns6pMzuEPC2DJLJfpALF/iATYQjmjxJ4On9QSizGHZApQjH3FG+dq9 N+t+Oc7obnOgE1qGHYQukccJWgAF5TnrwpnmjMmqBJhfBW0Uq+HCdqP7s9FYoeOFkb9v xmDMyql9etG91vmQWP9GxZHA9YBtt0Pczzt/hgyShLN0kQdYtNj4Wf9RK6UEDIzAD42F tjGVaQfem2d0pXbgI8Xmz37jS3owSjv6dGdXx8Bck3fzGTwzEOvhSe8RbyKnH+kf9YXi yMKg== X-Forwarded-Encrypted: i=1; AJvYcCUo/7Qh+qDXDb0gbvqmdWoyz+ZN/oyQBBF21CnaE/jKGYcoIvKPYA5vMoLLSxLbVFBtNraic8NQ2cIB8I2Ng+uGKzz3X/TSqEuiovc2 X-Gm-Message-State: AOJu0Yx2MIejIPPVkoiUyLBh302rmcqNA5UuIMjrjOt4EGWU7EN1iKi6 Y3Tsn+VuC08wum82HEVrSWMMsfc9eN9/8spbCOwySOVjbAN2TRfB X-Received: by 2002:a2e:8e74:0:b0:2da:36be:1b4a with SMTP id t20-20020a2e8e74000000b002da36be1b4amr9300341ljk.19.1715074550355; Tue, 07 May 2024 02:35:50 -0700 (PDT) Received: from pc638.lan (host-185-121-47-193.sydskane.nu. [185.121.47.193]) by smtp.gmail.com with ESMTPSA id t18-20020a2e9d12000000b002e29c50c4dcsm1335473lji.27.2024.05.07.02.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:35:49 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: "Paul E . McKenney" Cc: RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Uladzislau Rezki , Oleksiy Avramchenko , Frederic Weisbecker , Ankur Arora , Thomas Gleixner Subject: [PATCH 18/48] rcu: Make TINY_RCU depend on !PREEMPT_RCU rather than !PREEMPTION Date: Tue, 7 May 2024 11:35:00 +0200 Message-Id: <20240507093530.3043-19-urezki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240507093530.3043-1-urezki@gmail.com> References: <20240507093530.3043-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Paul E. McKenney" Right now, TINY_RCU depends on (!PREEMPTION && !SMP), which has served the kernel well for many years due to the fact that PREEMPT_RCU is normally a synonym for PREEMPTION. But with the advent of lazy preemption, it will be possible to have non-preemptible RCU in a preemptible kernel, so that kernels could be built with PREEMPT_RCU=n and PREEMPTION=y. This commit therefore makes TINY_RCU depend on (!PREEMPT_RCU && !SMP), thus allowing for a non-preemptible RCU in preemptible kernels. Signed-off-by: Paul E. McKenney Cc: Ankur Arora Cc: Thomas Gleixner Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index e7d2dd267593..7dca0138260c 100644 --- a/kernel/rcu/Kconfig +++ b/kernel/rcu/Kconfig @@ -31,7 +31,7 @@ config PREEMPT_RCU config TINY_RCU bool - default y if !PREEMPTION && !SMP + default y if !PREEMPT_RCU && !SMP help This option selects the RCU implementation that is designed for UP systems from which real-time response -- 2.39.2