Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1306424lqb; Thu, 30 May 2024 06:46:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGhfjhvqjUKFbgAkcprfrO/Be8JRjC6ebUuiovXPm1QouyDUR2NLOG5PqO8a5zANZDUICTp0/BnDjAlLwkXcCmOVDqf0JzPo4D5EraSA== X-Google-Smtp-Source: AGHT+IFUnAYdNfBAKhYPXQATvxAiIi07bOii27EvDQhbjJ3OyedRkC6xzPU4g8YNTYaVEqG5daVP X-Received: by 2002:a05:6358:71b:b0:18f:673e:fce2 with SMTP id e5c5f4694b2df-199b937eabamr242993555d.6.1717076771243; Thu, 30 May 2024 06:46:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717076771; cv=pass; d=google.com; s=arc-20160816; b=eATWAY7Gy4r8a+3jnItHuRC6O4tuGSgWtQg5YUJgKH6ybVh+ut6Do/B2vlp8GrLN8U +jGHZDOX4nIjvUR1bFR5Rzocil7LZJOQd1azrnsELlFMuFRgc+oLkJcWd47YxyuBDI1Y JztQWlz/9TCw9OTuC9ACxvFFnoZtGJS4ck2pWevdGz9PPan8IPe65IG3KJEbf/Zffo2V 86ubg3QUGSmO4EXKq9HHxGkv8RSJ5I2WW45y/inp1LMHRJomCAuXRMfI/E6GQTZTvKgz lqlIYliOuxIFRyBdbnJ4TQBY6sK9B07UzYVKC9vQTdNz2lmXob53Lpk1AWdqFMeaTIKj 9IrQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=KqzwNV0TmARKs4eTYB6mVyPy0GKHai33nbZubfNoTQA=; fh=ruOaVEkAbEh3t4sLFZXGQmBwM4c1/V/LLnMggyZGb4c=; b=CyBxeNM0IcMjAlh1fGCYtg0sq6jcdy/GEqHMFCj1gfCOs47OuePeHeKn+BI8KwWF0W fz/T6v5dC4H4huyB5KRZyNRcyE1jYXRcgHjn6FbnW0XQdYXrNxQC7eaiH6JAHBRQkGC9 IknkCjCggJ4ozx5XLctsQu/2fjNH3T+bX6Kg+xWQuY/2XQQfhxi//biZyYK3tSUJ8cgl 7gk75Itq8p7l8QjT7YzqrCUeyhkuYatxmbs3xFebUjXIBHe4sXSi7yKh5b7f7BCYr1k9 mpUh+pLpQ9bGtcb1R+1SENDfO8zmfVD2pi5kBKsy7riHY2ARMFGfX/gzb6A2XdiKoYTU eIoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DKcPZu6x; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-682287f1ec9si12006545a12.433.2024.05.30.06.46.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:46:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DKcPZu6x; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195438-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 091F6B22A42 for ; Thu, 30 May 2024 13:46:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A263175571; Thu, 30 May 2024 13:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DKcPZu6x" 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 3E6DB3D68; Thu, 30 May 2024 13:46:00 +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=1717076761; cv=none; b=NKNk3Kyr3ukkeqI2HqzS2p+YY+QKsJ20HSAD4fWtxd1W9iMf9hVIziBC6AL9Gc/diLVac3dS8DYl8ZpArsNhf9UtKbTRrRC0EaloZw36zrO1QE+fuolGmx1eJYG7VuKmyHPQZSFP9bC4RD9vXpN/lflaQbzP5+/MQMcPoYWvF9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717076761; c=relaxed/simple; bh=lN0Jd+emoQsfNHfUuQGeGM64FiQzitT5VmVytjiJLqM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aLMWFLISz8pVObz8y1aLWArbwJbsMT2VDkoASvMkfbwuKHXNN8gZ50P7sM+utgfgN0ihBjvwugf83CM6q7jd4sNRyHSAwWpnLRKlzPGkkFoA+UxSP6HJt+6L4McfFzpCYHlM8OcEV3hMTRIpf0F8ISk0iRNSfSQbEYupG8fRK4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DKcPZu6x; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14805C2BBFC; Thu, 30 May 2024 13:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717076760; bh=lN0Jd+emoQsfNHfUuQGeGM64FiQzitT5VmVytjiJLqM=; h=From:To:Cc:Subject:Date:From; b=DKcPZu6x6ZDOQSnwjf1knRBhFe8sUJl66+u1mp5Oi/6G0sInEE+S59NuJjMXhl1pl Jbn2VqYYKzQre+POsFszMw0VJv3iyf3s5fmrOK6T6BUqpK7R8S4KNzm371U+qf6D3n 2ZkC35fPG8OUOmnggYUODhwONny7WFCD8svC4rh2BX7tBrT7HUxrHUMw4VqfUwKRDh CmLQR47st6nr6kfj3eFDPLBhzAYQQazw//q4WWi4kRzjTUNVHpB5Ucfv6GQykHbMzQ /XLRpfXN3r1vd9hJCBI1Oick34uZ9bbdWF61B/II4tOY/g4Xv9POfHXQkLdzVP/uQc GRHNsXw+93HYQ== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , "Paul E . McKenney" , Uladzislau Rezki , Zqiang , rcu Subject: [PATCH 00/11] rcu/nocb: (De-)offloading on offline CPUs Date: Thu, 30 May 2024 15:45:41 +0200 Message-ID: <20240530134552.5467-1-frederic@kernel.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Last LPC's debates seem to have raised general agreement that nohz_full cpusets interface should operate on offline CPUs to simplify the picture. And since the only known future user of NOCB (de-)offloading is going to be nohz_full cpusets, its transitions need to operate on offline CPUs as well. The good news is that it simplifies a bit the (de-)offloading code, as the diffstat testifies. Thanks. Frederic Weisbecker (11): rcu/nocb: Introduce RCU_NOCB_LOCKDEP_WARN() rcu/nocb: Move nocb field at the end of state struct rcu/nocb: Assert no callbacks while nocb kthread allocation fails rcu/nocb: Introduce nocb mutex rcu/nocb: (De-)offload callbacks on offline CPUs only rcu/nocb: Remove halfway (de-)offloading handling from bypass rcu/nocb: Remove halfway (de-)offloading handling from rcu_core()'s QS reporting rcu/nocb: Remove halfway (de-)offloading handling from rcu_core rcu/nocb: Remove SEGCBLIST_RCU_CORE rcu/nocb: Remove SEGCBLIST_KTHREAD_CB rcu/nocb: Simplify (de-)offloading state machine include/linux/rcu_segcblist.h | 6 +- include/linux/rcupdate.h | 7 + kernel/rcu/rcu_segcblist.c | 11 -- kernel/rcu/rcu_segcblist.h | 11 +- kernel/rcu/tree.c | 45 +----- kernel/rcu/tree.h | 6 +- kernel/rcu/tree_nocb.h | 266 +++++++++++++--------------------- kernel/rcu/tree_plugin.h | 5 +- 8 files changed, 122 insertions(+), 235 deletions(-) -- 2.45.1