Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1313286lqb; Thu, 30 May 2024 06:58:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAotdeSnJMxlatj5nKjDbImSVEZo9Xyg43IwH4/ltFtI1rpNyu3NTDtKmo0byNZavpZd1wavXr0187BWF5K57UiOsIVT7gCCkxQUKDyg== X-Google-Smtp-Source: AGHT+IF/H1vlwttRUbVOhrei37T7ZgBuKgU8bO42jAvBzJTsV7nNNyFQ7HkEF4s4yn+JzMEtHJxz X-Received: by 2002:a05:6358:9103:b0:199:2df7:5cd7 with SMTP id e5c5f4694b2df-199b94c6be0mr234699455d.11.1717077489860; Thu, 30 May 2024 06:58:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717077489; cv=pass; d=google.com; s=arc-20160816; b=AgOwswjO1aXTelgmVN+ODokaC8MXJMurNAGpI55Ha4ZHHMuJ8rtLKhPau8V+qxSVzl pTQe3XINfnugdX7Gdg20HZk8krzCs/4y6Sld+Hgk2lWQPhVU2920z0UoXjPmQ4rIT5kj Z6wlPZTb87snar2+KNWZjczeaqCOlWgui9c8WCElBR9pzRPxyFardUCOcEW3QSMUy/Ud 8WJDCk9Fb54axIJ2gWP5gXkSyDwmLt7jKDfEKuyo7WiwqiyFTibrTUQkKH6tI06By8gd 87loaZ+0aSW19dCutnQ0yOUkLoWP+1p/5Eaa6Okmnq592YRXMBEQaUSm4V1DYUUP97DL fnIQ== 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=jKpYGlXxKAxsDPy+ohSZp5M6YojjWZiER35/iRhh73A=; fh=ruOaVEkAbEh3t4sLFZXGQmBwM4c1/V/LLnMggyZGb4c=; b=me+xAHlx5SmzGKF5QOYEO+UnEfoiqhZWJUZgHt5mGH/fQtedVIIc5AfXN1CGdgPOzu +Kbj2bAxv+8pxw0QcdMyAceT/6/3Tnd5sBE5dqmFgWqiueVh/Pmrbh7K92c0i8VYhK/3 9VgbVi2r/dU0bhjt6xwJW+hnBb5cdBuHrfm+DGMQ/bvKqiWvnsrDfw5kqmvAzsR5Yfoo znAUZ8XEP3RSVCMDkhGSMaanli/uLFKpz7rY8v+9G22adWM1Rm3hJI3OCpPCCEISOdzl RpSGNvJLbFe8yYzxSpF7dq7ZNKGxVZOJgurZ99+SCG1NYMh4EyZP/KWYY/Izv8lndlB9 5n+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GfNVBNeQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6bd612d344csi2482960a12.789.2024.05.30.06.58.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GfNVBNeQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1FA2628866D for ; Thu, 30 May 2024 13:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8709E17D8A4; Thu, 30 May 2024 13:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GfNVBNeQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEC6D17622C; Thu, 30 May 2024 13:46:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717076784; cv=none; b=eQV0YANO1pGViPQksBISR5qFjAOhp+Aop6lfIyXBOC02nz5/U2QQYpeCtWppwawiaREUTPuQoEks6Fp++66l2/GHyaRcHdwWlNDkI33lm4citlTnrGLtLq07Eknv0HagLJjfPfWFRaIDj/rqlcQKkLCboLBc+4aTJ8N9Em7+OuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717076784; c=relaxed/simple; bh=vKDdPpz7jOZDNyAElQztvVPztBWXtOQUT0AcGjdM2eY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a3b76bIeXIqg8Xr/L/6Nuo6RAg10fm7W/KmRaG5XRlsDF0HIc2D4Ka8FYt/XyYn6iknJBT1SXC5kpXmB6IysalMvks1wxUhjkThJN9x8g43HJf5tlcfMT5PArJWN5SqrNI+lhOmT9v1CsVM6WdRP62ORWbhWjZ/sargLJvVMYi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GfNVBNeQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AF37C4AF0B; Thu, 30 May 2024 13:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717076784; bh=vKDdPpz7jOZDNyAElQztvVPztBWXtOQUT0AcGjdM2eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GfNVBNeQ6tnVwZRHuT2REsRYE0fdHbYNj22cKYEgC12bhc2aTVqeaNIR9suq/y9jN O52ToT8GMFWz+t4OzQBylLmWCgaUlq+fGXpSyhJ3k8n+p1rwdBgAL1JVIHyHhz+CGB IUKLMqM2T+/TWNvv5hlapVDgXtgAtK1qNCay8YSyruX0pfkD7qk91JubzpgXFvTBFx RC4gOBtpveGEpBcwGEiYbjqcFHAArzaD3Mvmj/kJn7AI+Y1D2ovRE30zVX2p/IfKNQ kUm1vHm/+YI2eNRBIeZQEk398w2QzsYAnMgSbA+u9pUE8CbbGdhqcYssTJHOU+Ovi0 iUHDKJukf2a9Q== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , "Paul E . McKenney" , Uladzislau Rezki , Zqiang , rcu Subject: [PATCH 07/11] rcu/nocb: Remove halfway (de-)offloading handling from rcu_core()'s QS reporting Date: Thu, 30 May 2024 15:45:48 +0200 Message-ID: <20240530134552.5467-8-frederic@kernel.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240530134552.5467-1-frederic@kernel.org> References: <20240530134552.5467-1-frederic@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit RCU core can't be running anymore while in the middle of (de-)offloading since this sort of transition now only applies to offline CPUs. The locked callback acceleration handling during the transition can therefore be removed. Signed-off-by: Frederic Weisbecker --- kernel/rcu/tree.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index e904c187c281..c502a38dc5f3 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -2381,7 +2381,6 @@ rcu_report_qs_rdp(struct rcu_data *rdp) { unsigned long flags; unsigned long mask; - bool needacc = false; struct rcu_node *rnp; WARN_ON_ONCE(rdp->cpu != smp_processor_id()); @@ -2418,23 +2417,11 @@ rcu_report_qs_rdp(struct rcu_data *rdp) * to return true. So complain, but don't awaken. */ WARN_ON_ONCE(rcu_accelerate_cbs(rnp, rdp)); - } else if (!rcu_segcblist_completely_offloaded(&rdp->cblist)) { - /* - * ...but NOCB kthreads may miss or delay callbacks acceleration - * if in the middle of a (de-)offloading process. - */ - needacc = true; } rcu_disable_urgency_upon_qs(rdp); rcu_report_qs_rnp(mask, rnp, rnp->gp_seq, flags); /* ^^^ Released rnp->lock */ - - if (needacc) { - rcu_nocb_lock_irqsave(rdp, flags); - rcu_accelerate_cbs_unlocked(rnp, rdp); - rcu_nocb_unlock_irqrestore(rdp, flags); - } } } -- 2.45.1