Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4094020rdb; Mon, 11 Dec 2023 08:39:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYDKvIeuBpEr1j26q+C4bev47vHU4VmwMxFwyaETETugSf4pF4S7nJkeSRFtwObBnVC/nx X-Received: by 2002:a05:6e02:20e8:b0:35d:7946:bec6 with SMTP id q8-20020a056e0220e800b0035d7946bec6mr7145723ilv.112.1702312755036; Mon, 11 Dec 2023 08:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702312755; cv=none; d=google.com; s=arc-20160816; b=P/d8ZQu5sPNYapdDn2Gd5ucuSSAyecNnIMBrIkQcAYtbWsehiKgU6h84fx9CjkfFV7 okJ5ytY6TAolpYcIKAz/ju9VNCZSwGD0wkZA0iMUa9sGNu1TWMrSHv6mZ8ipVrDpFGTi MNiMaUnryONlsEv2yZTbwCshK2LX/1mfu2K0L4o9bLpLrrbI72A1JpULrtdvvmW8oKA1 z1npa3BDhg2JGyQECYarUlno93kyOLNRCLNI+loIb/keff/l/Y8+W0SLThWHFCu/OPlr zuexy9aWRwzEQQ21FQNd8iCJCySSMXT35+z/BN6MZBN+GqE/Sdwm8+RvDVJZIaryuxo3 rUUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=LTe8+1sLE8Y5MQzNXyV1mcw5ZAH3rqP3g3Ldy+ZQA10=; fh=rNWjA2ScL8Z7LQbsoClDMjtIuo4AqswST0ClfY37BMI=; b=D4V/PnEg1h4UriLAljRvkmp9CDqkVZWTr8wkd0idDJO/JwScCqTKktKQebmilQ6vak jt6Vr/mwr/loMrY+lGZcsKHNKYNBnEUoHeIstgNvBiqyjiB3d4loeVysFGyZ6YYy1YMq zfLDor55xBwge7t2OFuAyljTAqElGHrzb7XUHOw3Wa7+aed5fwhnFDjdw75UW71N9ZRQ tx+VyGEOJpdtVuazyxc+oR3L+hWcFoh4ONU2Hx7nmDRJwtTKfLnzyf8wjtTZtXXVa5db SsQG4SsMGrALk3ko2yqQZLWOve/7hZUDxU5TkjBGoK4Di4c3/bSaK9v1FmZkp2XjxUJD Qefw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qkPPYIge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k1-20020a63d841000000b005bd039e5a04si6240366pgj.622.2023.12.11.08.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:39:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qkPPYIge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0ECE98098484; Mon, 11 Dec 2023 08:39:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344883AbjLKQi4 (ORCPT + 99 others); Mon, 11 Dec 2023 11:38:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344504AbjLKQiz (ORCPT ); Mon, 11 Dec 2023 11:38:55 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE7498 for ; Mon, 11 Dec 2023 08:39:00 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26CDAC433C9; Mon, 11 Dec 2023 16:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702312740; bh=JGP5scqqz/G1q85Ox8Gnu7cOnTT2TgsJaikSLnT5GoE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=qkPPYIgeeegC+BG9xu4cWmc+FxTsPG8qWSIlwVmQDnotTPPLlkZ6S/Tx/LWM/rJid T2wN5wxab7kGy6FQbGByGJLcbffVuaLq/1sISpO8nIo5YOfjKDhfQF0OnOf5GYbYOS O8Gq2tCoJit6UGJe8ZwhIU+cBHPWm+d9Pk45ec/GNMPuXwPyYu/dvAxwNnSVGps5AL MVe8RMB/0/KwiKrHp0Qtgb7xqw9vfZjeTur8Ewf13Sam7rXroYiSkcb6fCMgE49q15 ZmEnfZ7nVJAS+6hC6Rsu0Pj1WkL0WevQiom/8qEPGarOhLRYDxvsg0CdGi1G5v9Bb+ 1QuHPWtXgxmvg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id C1A5ECE0569; Mon, 11 Dec 2023 08:38:59 -0800 (PST) Date: Mon, 11 Dec 2023 08:38:59 -0800 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: LKML , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , Uladzislau Rezki , Zqiang , rcu Subject: Re: [PATCH 0/8] rcu: Fix expedited GP deadlock (and cleanup some nocb stuff) Message-ID: <0be847d6-804e-4f9d-9eb4-beee9efb6c78@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20231208220545.7452-1-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231208220545.7452-1-frederic@kernel.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 11 Dec 2023 08:39:12 -0800 (PST) On Fri, Dec 08, 2023 at 11:05:37PM +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. The torture.sh "acceptance test" with KCSAN and --duration 30 ran fine except for this in TREE09: kernel/rcu/tree_nocb.h:1785:13: error: unused function '__call_rcu_nocb_wake' [-Werror,-Wunused-function] My guess is that the declaration of __call_rcu_nocb_wake() in kernel/rcu/tree.h needs an "#ifdef CONFIG_SMP", but you might have a better fix. Thanx, Paul > Frederic Weisbecker (8): > rcu/nocb: Make IRQs disablement symetric > rcu/nocb: Re-arrange call_rcu() NOCB specific code > 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: 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 | 222 +++++++++++++++++++++++++-------------- > kernel/rcu/tree.h | 12 +-- > kernel/rcu/tree_exp.h | 81 +++----------- > kernel/rcu/tree_nocb.h | 38 ++++--- > kernel/rcu/tree_plugin.h | 52 ++------- > 6 files changed, 191 insertions(+), 219 deletions(-) > > -- > 2.42.1 >