Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5909162rwr; Mon, 24 Apr 2023 10:37:57 -0700 (PDT) X-Google-Smtp-Source: AKy350ZdK/BDRLJQ1FCWDwwK7xjHU4VJvJDfWNlMqFbycSS9viUSUVngDt6xioYI6LU+fYXXRl4t X-Received: by 2002:a17:90b:4c43:b0:24b:af7d:201d with SMTP id np3-20020a17090b4c4300b0024baf7d201dmr5712243pjb.24.1682357877433; Mon, 24 Apr 2023 10:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682357877; cv=none; d=google.com; s=arc-20160816; b=DTHJCNqgC7wD+ql6i8Oq4wdMuTR/6pwcKKyfjbPDlp/BsTpsxLEw4L/coEAztr+1QI i0aIsdFdZD79VcLWbrNfYJvSJPrLJ+BwT5q1hD0TGq6Y5BZ91xaWJK1fL0/GBbAalvBM Nf+IAD1RlTAV5uy9eNroZwwwZThHX91/ZfWZBnlH6pEfLQN+vWJ7cGyAeNftv7dJjSYm O4wTcDWIsVMMPiM76piMYR8R5krQ3QHR499SG7HrfKpOmhTbXZCZDd3qUe+n+4SbL6ha q7DtfYscaiPveMk9DZQ+hjY6YbSNWb0XmYxSpmyR88fDVKSDoc/5g46Z/NhITiNlnJ/R wXVQ== 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=RgbZ0/lYahgfUpr7kOUdbuX0iE9ySxnRIOyPQpRefxc=; b=zg7km6jXi/5z6WfRXysfZjH5RQ1hwWOOhwLzltcdeBXGa9D7W3mtnsdWqnyTetncy2 Nz0gvaCBgwqY1bSyEUbx9+i8K35Uhewx2Yuyhkr33dB9izBrtaJAmZ3hilfh5SQ55QdV +xxfI2lLAMAwPu0OuoBpHfVZ3Ulddg7Oo/ghcFsK+P1uVB40DZnNNpMaBOuZN6JKmW+J RKqo3iL3UeuMXTzikuDzix5q0K/HlzU4t5qBgeTVa+X5bZo9pjpogVv1e7danDn79X+v xHLGfXbMS9/QqF6DH3AUigqztHo2kzWeOCB5Hjlv6xC/oGRWXxCn0Rj0A+x6WW0KzGfU XYaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RubTyWpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a17090a9dc500b00237dd21c1b7si11394172pjv.143.2023.04.24.10.37.45; Mon, 24 Apr 2023 10:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RubTyWpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232112AbjDXRfa (ORCPT + 99 others); Mon, 24 Apr 2023 13:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232059AbjDXRf1 (ORCPT ); Mon, 24 Apr 2023 13:35:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCDC72B3; Mon, 24 Apr 2023 10:35:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CD43262751; Mon, 24 Apr 2023 17:35:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41724C433EF; Mon, 24 Apr 2023 17:35:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682357721; bh=nXQw2FTN4L9FcEBusW5At9AwsWIZ0aI4hKgyyBuVBbM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=RubTyWpPSBAEuQnvW6S4VWaSxBXouhmnfRtYg38Pc64g+tzHKCAqlKdcJHmmvJw+9 7UAREttRfTy80T04G1TyNdpXLCqTWq3jMB2jW8LVwwFpmhHMMUm4BXpcu96sFJvZ9R dIlcuN6EmC9nLKwG1xoZO1yelXi/DEkvHNAozr3l7OLKLDkWsWUJuKhmFn4bYWeI6e GzsC+3vbPMQFmG3LHqcrMF4Qm7w+jRjjCUsVErpgend15cMRg3U6JqMXYqxf1cvG13 I+sJEmSWtFW3tQFchTzV4FT1QyEBPgkThp5KtKvqruotkqDvOWfFhxbzuWW4lDcOIS lgYY5sVZkUjCg== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id D245415404E7; Mon, 24 Apr 2023 10:35:20 -0700 (PDT) Date: Mon, 24 Apr 2023 10:35:20 -0700 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: LKML , rcu , Uladzislau Rezki , Neeraj Upadhyay , Boqun Feng , Joel Fernandes Subject: Re: [PATCH 0/4 v2] rcu/nocb: Shrinker related boring fixes Message-ID: <20d8070f-5113-4b3b-871f-ca543e049065@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20230329160203.191380-1-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230329160203.191380-1-frederic@kernel.org> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 29, 2023 at 06:01:59PM +0200, Frederic Weisbecker wrote: > Changes since v1 (https://lore.kernel.org/lkml/20230322194456.2331527-1-frederic@kernel.org/): > > * Use mutex_trylock() to avoid inverted dependency chain against > allocations. > > * WARN if an rdp is part of nocb mask but is not offloaded > > Tested through shrinker debugfs interface. I pulled this one in, thank you! As discussed, we do need some way to test lazy callbacks, but that should not block this series. And it might well be a separate test. Thanx, Paul > Frederic Weisbecker (4): > rcu/nocb: Protect lazy shrinker against concurrent (de-)offloading > rcu/nocb: Fix shrinker race against callback enqueuer > rcu/nocb: Recheck lazy callbacks under the ->nocb_lock from shrinker > rcu/nocb: Make shrinker to iterate only NOCB CPUs > > kernel/rcu/tree_nocb.h | 52 ++++++++++++++++++++++++++++++++++++++---- > 1 file changed, 47 insertions(+), 5 deletions(-) > > -- > 2.34.1 >