Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp646202rdb; Tue, 16 Jan 2024 11:12:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyNhtuCaVdfbM4nYfQwSMq52U/oZCc0AyXNQgoN+9wA0AJDyp+M2y2M+y1rN1g2irmoPUF X-Received: by 2002:a05:6359:29c7:b0:175:9fdb:8345 with SMTP id qf7-20020a05635929c700b001759fdb8345mr4776579rwb.10.1705432335317; Tue, 16 Jan 2024 11:12:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705432335; cv=pass; d=google.com; s=arc-20160816; b=fCYXgbSRUQARUBqcgrzmIMdcMfMiJb+4Lr5+PDfHc8079HXSl6vzlVBM9rpwhI6OFW qz0v+qau07D4+vG5gZvSPLygaCDJRWtbYqpJB/SZW4IFSS2NqhjRk6CErTHoXHLzfCXZ JSLT9Hiq7O5nmwnsQXL/4qRY2UCXNCooi6oFe2L5mv1izulfa57IkU/PImpKqRQTzajM OxHaPFi1AtIWDr2doNVZGVj4vY4jCdmVTt452g7jIuQuhVE3QxY3mUx9ZI+6CmJf0sWf mqA/4HGjsM0JlWSm30K4kk7fa7rQi5wE/nTmLPj63Lqn9cW3txOQJZmpEDI5+Y14R2iL bBjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=3V+1voQvIvfZtoB5K70Cd/oVQhKtEw8A3UVMeT4crUo=; fh=XGK0d34oqsCA+P4qCaKh0m6dwYfj7C0DMc51csPzXt4=; b=VPxnTWnGMDjuB7JEViBcSnVpgggF88U1ef2pTY/g6SaaFqkff8sCgGamjKnp/BH/0u tR5KpmHFIw0qxs0tLg71lmNNpJ0s3SuYCWoRSDl2PHUDEFE4x4iSjYp7LhZS+ZvQhRaE a5j8Mw6zccl+Zli0Y2MkIIfBCoWLv+tEgq+xfX4IUf6mZk1345uVpo1HdrgFt1jLTU8l yahzFl/khbor44AIjphLqhMd1028q5JS+EahS8/QOLyR4FwP0iHP+k5WRH36q7r0VSSq +sGIKXBdYlZTGtBAqm5TBgzrpTZ0x6peBNuKxnKY2yk5fbB1OYkHjwQZjArtMwg0URwr ZREQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sn8YAIa6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27738-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27738-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 fi5-20020a056a00398500b006da13c07b78si12038302pfb.122.2024.01.16.11.12.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 11:12:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27738-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=sn8YAIa6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27738-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27738-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 EF00D28422D for ; Tue, 16 Jan 2024 19:12:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A04B71D545; Tue, 16 Jan 2024 19:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sn8YAIa6" 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 C7C071D52B; Tue, 16 Jan 2024 19:11:55 +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=1705432315; cv=none; b=nTfpQ5s28ekYCewWLJuDk9szosc+CI5HNOObgefT7R1kcsCRHh2qdQanuqt2RdzAhAHuNAeVXHMloQTQMsRf8djrQXXZnqjmqHeHjTX1++ESnqPipZPm0kbxsLPMEhCkOdmbV5TtkrctjDrNnGBFWjaAb+vqzy2Xy4CzxCvnHXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705432315; c=relaxed/simple; bh=/drwUU+HTY6+EJK87T3aiN8RP3aLTLuVGm3MejMcAPg=; h=Received:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:Reply-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=OjmGeLJlA67zOKR1E8XkgpqSFhnFIJRyqETL8+tmOO2cXydOvF9kII6/1mQ+iqP9mpCivZd0fK8AgOBnPw+9NaJDl0jPxTSPbe2nmMxjgqE8pF6NOo1IzQWejRggfMIgXFvskXHkRTMFp33jSKlSKC4gVxmZEZzBnS9xJZGHIYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sn8YAIa6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27551C43394; Tue, 16 Jan 2024 19:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705432315; bh=/drwUU+HTY6+EJK87T3aiN8RP3aLTLuVGm3MejMcAPg=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=sn8YAIa678XlyJbtescQ/qnipQawlML7iFqkzXT194nKY2NY39N7FxFZWIpBXG50Q 8M3871qhepDbrX5ujAoGX+BjJsPv4o7ALy+/h6tcwYQj0h36NBxWbRVcQAaJfjEQB9 kPC/bOinNp0bFgf0JgYt/ZBdc+0eAnyCkvxhHFTmTXkxftJkEkLwMgLqi2yS8WUJrT VyuhAJkv+yajZCLwX5l3ZAFjk8S91LQ/ZgdCrMZjafO4GEuoWa9oHeAWRgYFOO/CyL JxAF9t5IJEXCphjOoieVaN6PuCVGBx2lWOSkmwH5k9qSkDFB8L1KKDtuyxi8Ae62gz 0BZUqwdle8PnA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 33EB1CE04A3; Tue, 16 Jan 2024 11:11:53 -0800 (PST) Date: Tue, 16 Jan 2024 11:11:53 -0800 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: LKML , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , Uladzislau Rezki , rcu Subject: Re: [PATCH 0/7] rcu: Fix expedited GP deadlock Message-ID: Reply-To: paulmck@kernel.org References: <20240112154621.261852-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240112154621.261852-1-frederic@kernel.org> On Fri, Jan 12, 2024 at 04:46:14PM +0100, Frederic Weisbecker wrote: > TREE04 can trigger a writer stall if run with memory pressure. This > is due to a circular dependency between waiting for expedited grace > period and polling on expedited grace period when workqueues go back > to mayday serialization. > > Here is a proposal fix. > > Changes since v2 (no functional changes, just renames and reorganization): > > _ Move nocb cleanups to their own series > _ Rename can_queue parameter to use_worker [2/7] > _ Better explain the rename of the mutex [3/7] > _ New commit with just code move to ease review [4/7] > _ Comment declaration of the new rnp->exp_worker field [5/7] > > Thanks. Hearing no objections, queued for testing and further review, thank you! Thanx, Paul > Frederic Weisbecker (7): > rcu/exp: Fix RCU expedited parallel grace period kworker allocation > failure recovery > rcu/exp: Handle RCU expedited grace period kworker allocation failure > rcu: s/boost_kthread_mutex/kthread_mutex > rcu/exp: Move expedited kthread worker creation functions above > rcutree_prepare_cpu() > rcu/exp: Make parallel exp gp kworker per rcu node > rcu/exp: Handle parallel exp gp kworkers affinity > rcu/exp: Remove rcu_par_gp_wq > > kernel/rcu/rcu.h | 5 -- > kernel/rcu/tree.c | 175 +++++++++++++++++++++++++++------------ > kernel/rcu/tree.h | 11 ++- > kernel/rcu/tree_exp.h | 78 +++-------------- > kernel/rcu/tree_plugin.h | 52 ++---------- > 5 files changed, 142 insertions(+), 179 deletions(-) > > -- > 2.34.1 > >