Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp448473rdb; Thu, 22 Feb 2024 08:32:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZhU/Bp81/Yedk1ntD7+UTwFFgcVQ2RlZEOZ45qqwu6RpGj8CO2/yncroFbs9tfW4VcI31H4uiAB8g4Lt94YXtlwSF52mjMB4wCPxw2w== X-Google-Smtp-Source: AGHT+IGw5nEkkdgrulLEpSpvGRBmDd97jYnPVa4FkWVhqRlXa439+PMa1zwiCAHs0rVW8gluekRo X-Received: by 2002:a17:906:4896:b0:a3e:74f5:f933 with SMTP id v22-20020a170906489600b00a3e74f5f933mr8490364ejq.12.1708619553956; Thu, 22 Feb 2024 08:32:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708619553; cv=pass; d=google.com; s=arc-20160816; b=BLRlTdREcK/BiYfVRJz0fMwCdGeNU2ulg7H+RvN1DsyvFLeLmcvrGdM1WtjDnt3rQV aNyeen83aq8TN2EF6781q+P4iUKXaSFbwPlxXectECzpXWrQ5QI4r65qtr7LFGavVFQj LSPxa2PhP6yvR2d5BGWkE5zQPNTAs1BZLW4/VaFPkm32WG1O43YfSfsYRYDNchik6EXW 1XpYJStmv0BjYchONYf7FdONyhFfBXbTgVe5pZPOmC6P6+z6b2Xn38i/xVl5fSs4b1Qp UAM4UxK19U8isJfqN0eF+ULOyrNCPkb+V8yDIxRYNHLMkwYFMM//DVdRZrgDVX7VtVkp wz+A== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=7eXPtIKluQBkiDoNCKfUnKeLdycL7d1WWVelpii/O4U=; fh=+N4XTqpkIIcOvZNq2MD1S56jk47n8hyaOBWWbjM7dp8=; b=Dt4d6IJ6YC2MeN8kc3/PgXUB1Bsh86zCG2vFillejs4FJfJyRPO6y2AkYEejCgAAQF w4ERecfwXvoS0ldUdoYDedPvzK1iFsL+FNGSry8bcbrCIbKcuYVQCIkB8C8FcG1jXCeZ KyGFuJA3O2z6VVqM1pbwuRSJ/CMQaHcvvaowbxKPsvC6eJF7Zd3+oDqLw0l/SL4ysCSL RvKEMsuegziKywQQdlcz8YwaxZ00AfKjfy2Mz86lNkk9ubBkS47GojrJKL/KYF8FO1U4 FK/YZTRpJ96H72ZLgr2wlj1+XhQqr3dOMic9c9Id5CcqL0DprDzhrjyaf/ifu1MGpySs Dlgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UTy1IJJU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o24-20020a17090637d800b00a3f6c6fbd1dsi858029ejc.701.2024.02.22.08.32.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:32:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UTy1IJJU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76882-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B25A11F25386 for ; Thu, 22 Feb 2024 16:32:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 854BC151CC1; Thu, 22 Feb 2024 16:32:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UTy1IJJU" 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 66F7415098C; Thu, 22 Feb 2024 16:32:23 +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=1708619543; cv=none; b=K8tk1QwrfbW9ZjqJ3lgIFPMoaWVbrwzdPIbOS+QGP9N2unRLFFOexV3HF0RnkaB4fV8vERKJ/w98p7X1f0vA6fQDHu1m4fI8y3NLMWboeaVbgLSzUm2T9j8sxaOoOfQmAXiHHNx868x9Ab7WkDHzrFnYddUEf0x+o3owhVqKA+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708619543; c=relaxed/simple; bh=Y1FDu3e58sxUyX8c6bWspuaBUksa3HEve/jDnxW6r8o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mNbgrHoyd+2vbSZKnTkS2wzbFs7EeHwPJN2Y9bU/JDqf54E4QF7mSKba1GpTi5gTVhpiCQtnWRB6PIsQ83Y4BUCU06HUywGLO5tNtJkNv1fsT4niqpAR+yykrBLGvB2ZvOeUNP5+mNPG2LoB1jd07tzEAKAgD/u9SwZSSz4xJuk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UTy1IJJU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83E8AC43394; Thu, 22 Feb 2024 16:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708619542; bh=Y1FDu3e58sxUyX8c6bWspuaBUksa3HEve/jDnxW6r8o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UTy1IJJUsGcYsAeG8Mqmk6hxjnqgj/nruqyRszQxId27I9/pmujOHPHbCLEkvp+Nc yO4TgmzUu/yGf2fgSM6CLOTFBmhnq62q8SrtaGwozA2pMvwFwJcqvAP3Sk5DJuJJMg JRYLoQ3zBuaqZc69W8LqV3P98Mp3Pmd85gzs6qjG3dIhS6bGGhZjgULIeyeHgG1lO/ ZpMkk+jOiGMBAxS2OEOx2D3LAsYqlOFTNmx0FivPNcN/Yvg9N3RvFyeQzheBVBxYT7 ApVItRxjyOZTuSpR5mTiODtERKiyH2YUOCO5CU6QBthrdkBo3qYMKOD1s31ueoBh2Q F5fJrwClEl2Qw== Date: Thu, 22 Feb 2024 17:32:20 +0100 From: Frederic Weisbecker To: Boqun Feng Cc: linux-kernel@vger.kernel.org, rcu@vger.kernel.org, Neeraj Upadhyay , "Paul E. McKenney" , Chen Zhongjin , Yang Jihong , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: Re: [PATCH v2 4/6] rcu-tasks: Maintain lists to eliminate RCU-tasks/do_exit() deadlocks Message-ID: References: <20240217012745.3446231-1-boqun.feng@gmail.com> <20240217012745.3446231-5-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: <20240217012745.3446231-5-boqun.feng@gmail.com> Le Fri, Feb 16, 2024 at 05:27:39PM -0800, Boqun Feng a ?crit : > From: "Paul E. McKenney" > > This commit continues the elimination of deadlocks involving do_exit() > and RCU tasks by causing exit_tasks_rcu_start() to add the current > task to a per-CPU list and causing exit_tasks_rcu_stop() to remove the > current task from whatever list it is on. These lists will be used to > track tasks that are exiting, while still accounting for any RCU-tasks > quiescent states that these tasks pass though. > > [ paulmck: Apply Frederic Weisbecker feedback. ] > > Link: https://lore.kernel.org/all/20240118021842.290665-1-chenzhongjin@huawei.com/ > > Reported-by: Chen Zhongjin > Reported-by: Yang Jihong > Signed-off-by: Paul E. McKenney > Tested-by: Yang Jihong > Tested-by: Chen Zhongjin > Signed-off-by: Boqun Feng Reviewed-by: Frederic Weisbecker