Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1307533lqb; Thu, 30 May 2024 06:48:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAPTPSqdu6cWJn3uiQTPAyhImlvVogxr1YfAEnQuTh1xY6l6BoDfOJrTQ3ICy+hrRWD9Jp3x8iP8WJgGkVoB9/3LZTqbVVKzu4IeSAzw== X-Google-Smtp-Source: AGHT+IH2vTFU+OvT2U09Of/fc9OL1A6Qx0jB10JQxG7QnsAp9FpvLmgXIIedN9/9Loi1hxrZ8/zB X-Received: by 2002:a05:6214:2c03:b0:6ad:68f7:fd8f with SMTP id 6a1803df08f44-6ae0ccb0c69mr20692216d6.46.1717076885299; Thu, 30 May 2024 06:48:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717076885; cv=pass; d=google.com; s=arc-20160816; b=09coqY9dY2oLjPI6dO7EbR7yIFIZn8nLnId89ED0ZwMjNGq6lEmKYdsPyCHFEvsZ3N EYAz6yIUsS83g3clTpES2KqUvqJYJu+5bzTJ3dtYucxMOtFc2orbShYb8+CmChEEl2wp G5U4MDZg4azTfTSrNFSvYJP06Fr5Hxn+1sOe0Z1tv9I/0cCGHpy6F4bCKWp/b+6O43pi PpX1bvn+cJF4eY5Aaa3iXjpX9ZuUC9jpSrA35gQOon9q/13cHwDF0aC/teSWuuqs5Sau iE/shb0S2COHQOumOENHCx5lbSjTkrqGn1tXeNfRDqzpFdgz5HUjIHqbChb0sxbGwhzZ D4kw== 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=v5dhldGyTT0f1kS0TFyXaCUB9EVC0UZ3sFIc5DwzQik=; fh=ruOaVEkAbEh3t4sLFZXGQmBwM4c1/V/LLnMggyZGb4c=; b=i87IbCTr67FWfobE4mCsd10Z6/wUA6VVYn6fqwSwpR1tkPjm9SVUE7/HD1q+8l4WuS qOdNuV3tylmpT4bkqg7Kq8riouUiY6g0e0ESBKHpZ9hNdo2a/iajPW1T3maQw6K3djvE FQiyX1S2CeH4oTRqInqgK/tnC10rYOb7T5tORJHzP34W5FuMmqNrXnh4SQa/+zuwUHVx 8WWAKb76a31ZYbOkBgPXB2Er5gOl3aakKAc01tkuUzT+4sTG4DhD9TgGohtZVIYfqxwW FiNfj2cOX/s9dvlo5Q1bCTyCY4o2qdzwxPCUgiMAMyN8WWaTGueUeOsHXy2Gya4VJRXD R+/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n3Tkc9cE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac06f4ef1fsi149655336d6.50.2024.05.30.06.48.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:48:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n3Tkc9cE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195446-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0B4DD1C221B8 for ; Thu, 30 May 2024 13:48:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44DC0176236; Thu, 30 May 2024 13:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n3Tkc9cE" 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 6B11317622C; Thu, 30 May 2024 13:46:21 +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=1717076781; cv=none; b=orGlTqE9y88SWxUSIUzieLfTjNTplmcQBuxOsrGRg06l+Phb3prG1grB6FalgFD5TAvwtaD1WLhO9c02v3v5FBXfu1ixZjph/VPR83dhrK7WUpQtaFUHsV/mraOFKc4UhlSBpU5Ltogtm9mg64x4t9r+VPZ1qGdQj4HFeQbJq7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717076781; c=relaxed/simple; bh=G7hgw2ekfOoOLYzqZVIcD2ljsQr8OX70amcE7dyLSUg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gEvXaX8C7TEYYcm/2Y1Rk0UoApNMYtHQhIvRbf7E5u3lSGeSLM79sLbL6ecMwkD0/hpktiHW643szjh1DpvJW3PnYX/BIQjI4g1zq/ybBKsOTeZnH+KQHi0t28fsQ6hLXYmN5rgD1dslvOsGnWNxegU+JqK3wUV7GnUXTlQ23S0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n3Tkc9cE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE6BBC4AF09; Thu, 30 May 2024 13:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717076780; bh=G7hgw2ekfOoOLYzqZVIcD2ljsQr8OX70amcE7dyLSUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n3Tkc9cEw3jhxmznAFGQwQw+0ZMcZRVyAMfCJRBk51b3hyTrGmOxnIfdrqEflI8Mu C+yeAs/FIKtqWtmkhiFik/rS7mKQuSfzU+8DibRhM2IsX+V22Fb8dycjMS2uwbMbFz OpY9xz6MCE5jv6Kdq1GFF2rpPnCmdSMNPtfuX0zWmQNmA8PcfOonyN8oJNPG5mU905 vTiK3mtJ16aoJYkar7FaEwUBw59SzHimY7dTj383F//trdn8wJvtfNaNsF3ibLp8lp mYy6Q3xYD0+JqI5Wem1S3tMEssqmOA3ICU0pEzGpyzQ+ae5+ifjtzodvJIlHDRK80P ajxYr7SPEGwzg== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , "Paul E . McKenney" , Uladzislau Rezki , Zqiang , rcu Subject: [PATCH 06/11] rcu/nocb: Remove halfway (de-)offloading handling from bypass Date: Thu, 30 May 2024 15:45:47 +0200 Message-ID: <20240530134552.5467-7-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 Bypass enqueue can't happen anymore in the middle of (de-)offloading since this sort of transition now only applies to offline CPUs. The related safety check can therefore be removed. Signed-off-by: Frederic Weisbecker --- kernel/rcu/tree_nocb.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/kernel/rcu/tree_nocb.h b/kernel/rcu/tree_nocb.h index 8e766396df3a..af44e75eb0cd 100644 --- a/kernel/rcu/tree_nocb.h +++ b/kernel/rcu/tree_nocb.h @@ -409,14 +409,6 @@ static bool rcu_nocb_try_bypass(struct rcu_data *rdp, struct rcu_head *rhp, return false; } - // In the process of (de-)offloading: no bypassing, but - // locking. - if (!rcu_segcblist_completely_offloaded(&rdp->cblist)) { - rcu_nocb_lock(rdp); - *was_alldone = !rcu_segcblist_pend_cbs(&rdp->cblist); - return false; /* Not offloaded, no bypassing. */ - } - // Don't use ->nocb_bypass during early boot. if (rcu_scheduler_active != RCU_SCHEDULER_RUNNING) { rcu_nocb_lock(rdp); -- 2.45.1