Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp403142lqh; Tue, 7 May 2024 02:46:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVb5tl3R9homGOhWdeG+sS18SGBUgk9qjTl78JVmXPfiX+3/bwbdqm8fWJZlgH7G3llkzCP8m/Chc5Kl317p5NqmNo9Lpx8Ag7nBk9qug== X-Google-Smtp-Source: AGHT+IEtlRyW9P89gSshtr1JGUeExZ/O5zWSRVZZuhqk7T36v29i6Ebjo2SyOMAETsh5+3S7hKdz X-Received: by 2002:a05:6a00:1943:b0:6f0:c88e:a0dd with SMTP id s3-20020a056a00194300b006f0c88ea0ddmr16704711pfk.28.1715075196649; Tue, 07 May 2024 02:46:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715075196; cv=pass; d=google.com; s=arc-20160816; b=uOaIt0IYKA0pRgtMDiB6HOdqIG2NUlzS46C2mpctmqz/8LaqA1eqJKvA7l0K0ZdLJU zJ6QLDujbNxYAY23utnTBrvh026w1QRhK+0/84GqKY79pFH4BOnl2hB5jEAesJR3OV7V 25Rns/O+qAbH3Ly+c95Vf4T34Ebh2Wv4T26erd0EcKPBCkCwMSpH2fqYIQ5TIvty+/D4 mgzF1rqr9dZekYRc1reMyX1WVdJs36DRhsCeyYtUEPVsnurmMa0dIjLTypQpLhHtY27O wqL5el98BkNja3i5T/1mN1QkMdB5n147Rr1xIWwCN388e2dNFpAsU9D9MKTBQYukjD8Y Dyng== 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=VAJsYakYPuzaiyx0tsxsRzlSG1LGaCLezN9z7sN3Trk=; fh=HJaLBB+06u+884JIZRyrLFvHSXxfj+LIvnYXnLMtdiI=; b=HWWrjOc+RiSlzaNYBF4CLaTzBfPyY7YTXfgdVRXD6j5vqKswN2/A8L/2dIQRf1ZC/t HZasd5++tCljRdOLoVw9TNBSQVJihS+PyXCD0q59QSAaSbzMVHMITK3La9pizJNYbvmn RNr8yNRxqYTUC1bO2gUqAlo4w+v3dTbpH0/ib9mQDnGlaXOKNz5/Ve8pV0NcQzBzTrfZ WhF7FYtWC7jHyYb/Bv0aMTrtGA9afNin+/dwvOJ0K6TVr/zX+rlgYe0nMs5HqnXyJIV9 CLhNgphvH9rHF/dmxTemT0qo1p3RMbAi5/Mp7e4CVRdN1OWbk/vDEhIaw+1bjEd+Z6Ik mn7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bQla54pN; 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-170980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m30-20020a634c5e000000b005e8d66158eesi9687527pgl.276.2024.05.07.02.46.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bQla54pN; 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-170980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170980-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 796BEB25B04 for ; Tue, 7 May 2024 09:40:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB94414E2DA; Tue, 7 May 2024 09:35:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bQla54pN" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 D956215E1E5; Tue, 7 May 2024 09:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074556; cv=none; b=nVn11yL4sMRfK6uC/COz1SLknkI3rXb2ffkF1wdJxiAu1hPUjWJZ6efdtv7WhsJK69wdDtI2no4HrLpI6gudn1aAHuYXByIPjVR9VDtxsZ7Ru/Sb4oP51zXcVk9FUsdrDyNTrsHc/tUL1qewe8o5siaHiVOnLmjwETjFjezSkZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074556; c=relaxed/simple; bh=zfE0jzpc3gN4d7Fx9F2XDO5M9JRfm30TahjMHP8f+8Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=utBuqLiaXi3dFEACZfs5us/sMjeGcLN8jf7FZqx3FM/dppwaeKB3dtZszYtr2UXFeFkRX7czymW2T2g5bFMcq/qXMPcRnq03+0u+Lh34YpChv4JYTRz3f6mFE5TLq+NY373U9WN2jkUCf6xRnVwJSqiJ1VnNzaC4jWD0SFR29bs= 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=bQla54pN; arc=none smtp.client-ip=209.85.208.175 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-f175.google.com with SMTP id 38308e7fff4ca-2e1d6166521so42221031fa.1; Tue, 07 May 2024 02:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715074553; x=1715679353; 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=VAJsYakYPuzaiyx0tsxsRzlSG1LGaCLezN9z7sN3Trk=; b=bQla54pNU/AWLRtf8gB4cUHCrmGsOZ9S1O/TUwWSSEv4NDyGqsVEK6tvZxViqQQKz+ 2Un2jv4lB3zThS4ccNtPXIY6d8XmYz7ot9D+4/3q/KA1WsjoPHQMaRcb8ZFYaH/3Swy4 CSKnNP85PT03OTLt/X33KpMCpLmTjZzA7twWSydtXWjSy/tjN09/cqdx9i3OAHf4P6Sa WggZlClAQPDMnMI/vDbpjk4IXOa8GbcIMYd/ZlxrVTjo+7tiTsZPuIosRz93i6dktMpI ubsyHb9PzDGbiRVrECjOP8kqvv5nwSEV+wdbAgXQbC5OK0ok/MtpTVBcrNH1905rZMDx Cbxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715074553; x=1715679353; 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=VAJsYakYPuzaiyx0tsxsRzlSG1LGaCLezN9z7sN3Trk=; b=b7C1fHTPnmNrLQ5KieZ1ewjsIgVQsLpvfRFmx7mRbE9cAEW7gR9B8W+VuggWQXkHKb DbOMgCaM5zgjdRfmmYYgQefecUDLkeB67/NnxLGbzFgOOJjKA0+NvTdlTPDrGmSzkscT f9mYgQXM/yIwfJfsVLl+KuN3Eh5oVNRcmQQevCQw1a58T7XL8Cl/SW/Hyp82a9l3+kxR YZTrNx1bRaAbjOQ9EXseXp+I9g1zh/LDeILds06it32xjy9MBdB0GNquFCAvznzGoYcx pTFjpcMipTr3t1ZDKYHdN66p6Lk+8zXQCtgD7BWwFBUxYn4ApCNVa7LkD243Evew7nRk hH5w== X-Forwarded-Encrypted: i=1; AJvYcCXlEA4BKO3RvM+j4VRnoBv07iaP/axORqco0KIMopcJpixhtrlOUn/2KLvlmHL/oIvd74tXflM0m5scHuju6jD/PFq+ARD7rrfvSHhL X-Gm-Message-State: AOJu0YxZ3+SO5yfMhXEPIc3w19LZweCQWismQPIiFUuxxJHo8q/+5iVg ta+WepJXxD1U84iTKeGG+znKmL7DybIzM6hQagluOnjdiv50mSWkBL8bLbmn X-Received: by 2002:a2e:99d7:0:b0:2df:4bad:cb68 with SMTP id l23-20020a2e99d7000000b002df4badcb68mr709364ljj.16.1715074553013; Tue, 07 May 2024 02:35:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:35:52 -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 Subject: [PATCH 21/48] rcu: Remove redundant BH disabling in TINY_RCU Date: Tue, 7 May 2024 11:35:03 +0200 Message-Id: <20240507093530.3043-22-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" The TINY_RCU rcu_process_callbacks() function is only ever invoked from a softirq handler, which means that BH is already disabled. This commit therefore removes the redundant local_bh_disable() and local_bh_ennable() from this function. Signed-off-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tiny.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index 705c0d16850a..4470af926a34 100644 --- a/kernel/rcu/tiny.c +++ b/kernel/rcu/tiny.c @@ -130,9 +130,7 @@ static __latent_entropy void rcu_process_callbacks(struct softirq_action *unused next = list->next; prefetch(next); debug_rcu_head_unqueue(list); - local_bh_disable(); rcu_reclaim_tiny(list); - local_bh_enable(); list = next; } } -- 2.39.2