Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp621021rdb; Thu, 22 Feb 2024 14:09:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKr2fsh8Nj6/IFPjIPeS8RA4iMzRdt1Gr5vk55x+AEVKgh9eKEXKsifGNCGsnwFrfO/oKkSuKvCLL1zqQQOq70OAzQDy+7nKHw0voR0A== X-Google-Smtp-Source: AGHT+IGtEsUGj7ISUlvBowBC7Ga/GXkU/BIj7V87yn5lV0/hap8sJLhdyUKfnSM0WU8HHBzVoNIg X-Received: by 2002:a05:6a20:a108:b0:1a0:8697:1e2d with SMTP id q8-20020a056a20a10800b001a086971e2dmr220313pzk.16.1708639766624; Thu, 22 Feb 2024 14:09:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708639766; cv=pass; d=google.com; s=arc-20160816; b=Or3w2TqnSZiOENLETKReMuLfYtZeiCxhpw/9ROcyisE+H1HaPJtIokwY/HkeNn6TK6 fjaBBTWvqUdEAz6gaBoDecU0n8fJaTptP3nCvrXkNgJc+O5VPrCmuWKWUejPAFps00EO I6O83l2Dg8gjnAIluoksmvF/DX4wMbUcOfWeO8DABBNm+b69v4xvky/UE/7SbGHiBupe Eot2ricXTl3xb1pKwygpLMHcNynAlTrnghaVIwapy5XXqUgxlsBFuWY22gXmxCxdyEVZ 8ezgIQGTyQvp0bH1i04vx3NNpeF1oRwU+yziQhv+az7OFeMtt1vXG5Zs9W17A4qeAfp1 lDTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CuigMn5ZGImaBD2uz5KxYx15bUSBIODDEOzIMKgKhWM=; fh=ILg6AD6U+1JoHd7eChNgwXWYGXz9I9KjU8T9p9yS+X0=; b=GOm++BcgPNBKAbyo6rct2KE3NsMoqatqlafzcORqN2q8kqHqdjONGjQobmKT2KkoQ1 NHC2HfmXdLCFJdiS1UY1yxRvBFGPCouz8VZDeyT+CcTfz3dwhOXxfF/fnc8H6xzogAgf xW7jBjyu1t6fYHfWD1drCPR+3E3w1c8e5GODh7vsma62xmDMG0nIS4Eo39GxFy8MdJBz /7ouwQ7iqUdMTcef5aFK9Wap+yet+zkFPjoSZUxN1F2Iab661FkFF6PVfuoRwzuP9qBf Id8bCw9ItQNS3Wdi/HLqbUqneYm1PT2Qbn8YnGZftYmujkEW3gU6y3DtdSRBft2L8Fz7 uXcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqTBSYdN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77449-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 n17-20020a170902e55100b001db5b2535ecsi10847766plf.553.2024.02.22.14.09.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 14:09:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77449-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=FqTBSYdN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77449-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 51C2E2855CB for ; Thu, 22 Feb 2024 22:09:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34EC412D21A; Thu, 22 Feb 2024 22:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FqTBSYdN" 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 56FF073F13; Thu, 22 Feb 2024 22:09:18 +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=1708639758; cv=none; b=seOMFzM/zS2i9hpY9wkfcR5fbZ+DfvHWUnUN189jd5tT8O5Zn69jLHBHJjPcgjgexTxdGHxHnnDOh0CDKTr0CjGa97xNx8Sswefn4BG4mERiDi4eNxixCVqgdHLso+u3qL/m0Wx3K/+0KtIx0I/3LygsFNpLGgMSH3o0kk7lJUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708639758; c=relaxed/simple; bh=l1/ezjl9EYeaWVpvN0u8fT88/5VTm9AGnH7HjTwqtiA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bW6968JHGNxijWuiskLJRTvu6YW9vs8zhQbHmr6/bdA7wyKlalaPKsiG96m4Z0UzKpMiCtiYx38gxzifCB1UxuX+vR2NzIjsEmkheqSYcoKpbEmM2h/ngUbL2Nd3iMajroA7rpSEbL5JMLCGVVdp/8cophHUf8DOpmN7k+TU534= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FqTBSYdN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA03CC433C7; Thu, 22 Feb 2024 22:09:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708639757; bh=l1/ezjl9EYeaWVpvN0u8fT88/5VTm9AGnH7HjTwqtiA=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=FqTBSYdNMC4OQYqaJNjwK3wxZ25TIuDMcorlmS0nUEcfuuGpReshtX7RZ1r4iRuBM n2RpmlN0ygdXZrJ0AA6MmmHlz69lUbAtFIp7ro+Q4vB+Zh9sz7FZeNt5tBZ1ilUa9h zGgImhskFv1Xle+tJM5LYJvJL6RaThfi+fTkMdZ+TXo1pDCD2CES1hFfS5NlxtDvkU Aq3RrfI/hpRzt9fSfSzn/owXvjSZ2SnW9M9inNyFh3QFEroqPXWQQpw5yxjmg3EgJP fTHSyLUWWlB8hBuQBVe6Qz8GXTsDNJfq36eSel7hFteSHKh4sMPPV7uoZY31xEkbNE D+gBTCVY/0kfA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 87292CE0738; Thu, 22 Feb 2024 14:09:17 -0800 (PST) Date: Thu, 22 Feb 2024 14:09:17 -0800 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: Boqun Feng , linux-kernel@vger.kernel.org, rcu@vger.kernel.org, Neeraj Upadhyay Subject: Re: [PATCH v2 0/6] RCU tasks fixes for v6.9 Message-ID: Reply-To: paulmck@kernel.org References: <20240217012745.3446231-1-boqun.feng@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Feb 22, 2024 at 05:52:23PM +0100, Frederic Weisbecker wrote: > Le Fri, Feb 16, 2024 at 05:27:35PM -0800, Boqun Feng a ?crit : > > Hi, > > > > This series contains the fixes of RCU tasks for v6.9. You can also find > > the series at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git rcu-tasks.2024.02.14a > > > > Changes since v1: > > > > * Update with Paul's rework on "Eliminate deadlocks involving > > do_exit() and RCU task" > > > > The detailed list of changes: > > > > Paul E. McKenney (6): > > rcu-tasks: Repair RCU Tasks Trace quiescence check > > rcu-tasks: Add data to eliminate RCU-tasks/do_exit() deadlocks > > rcu-tasks: Initialize data to eliminate RCU-tasks/do_exit() deadlocks > > rcu-tasks: Maintain lists to eliminate RCU-tasks/do_exit() deadlocks > > rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks > > Food for later thoughts and further improvements: would it make sense to > call exit_rcu_tasks_start() on fork() instead and rely solely on > each CPUs' rtp_exit_list instead of the tasklist? It might well. One big advantage of doing that is the ability to incrementally traverse the tasks. But is there some good way of doing that to the full task lists? If so, everyone could benefit. Thanx, Paul > Thanks. > > > rcu-tasks: Maintain real-time response in rcu_tasks_postscan() > > > > include/linux/rcupdate.h | 4 +- > > include/linux/sched.h | 2 + > > init/init_task.c | 1 + > > kernel/fork.c | 1 + > > kernel/rcu/tasks.h | 110 ++++++++++++++++++++++++++++++--------- > > 5 files changed, 90 insertions(+), 28 deletions(-) > > > > -- > > 2.43.0 > > > > >