Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp839250rwl; Wed, 29 Mar 2023 09:06:27 -0700 (PDT) X-Google-Smtp-Source: AKy350btKCXsQmXCXLrZi7cGgqr8Briu0o/2RPPcF7QsLw9+WvXkFrF8XX6fbtnptoggL0cK/13s X-Received: by 2002:a17:90b:4c08:b0:237:97a3:1479 with SMTP id na8-20020a17090b4c0800b0023797a31479mr22934852pjb.28.1680105987272; Wed, 29 Mar 2023 09:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680105987; cv=none; d=google.com; s=arc-20160816; b=Dkr9QwuXb4jff+EjbBimjsbYXrn9oTBC3+sGXpj9t0yFVYzbHXkvGaJPDq0RIbTFJw k2QLrWXVALyEkNGzHtrEkZfBnjld0v+ajngdmVeeIrCAW2wyCinsTuqnvmJLzkdzdHwP TZMXBKlhIECNkvnX+OqGor868n0yRqUNxtgdoz4hlqrTZtvdk38qWQGmqRHV67cH6uXr R+zM5jK+nYpZ3HoziuL5yKpYloqPkvy/msSx7xsryTVft0Vw6io60gMDu3qLbmbKO4Hf JUkt+iwYAXC3Iiwg2BNkqMsxOMUBJkV7TaF26g1uc99BV57qJgox8FvBTUs3C5WYEQjb 7KRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FYUyeN3VXrOuz8Hodwm4DmC2SpM8Q8lsN/UR2j8Jizs=; b=istUjEu3tKbJd4Owu4rObsI6zhCs5lXWs8aGkWo55t85BPQdYeHm/M31Lpang+VJDk ILyBvU2mYTw5GabYTXn2utqpd146bZkYKcZHNEwMWjK11bZeSwYuKhRC9bA4DtveT/kS 9ndfzP9EN4Dxr3S11RkyoTSDPS8M6DDx4lALqWGPhHXCxOvpJ+iexvvOqY0fygN/Kc+x StfAYM37aLdXVDbJGcrwD9fciluznQEPKstfrDBJNgQc048Zyv5iOUBqZaBx2M1JFX3w 9Kv4bDg5obiiojVt5XhEWyFUW1sNgmNkqyrFURHOufcnl03sbW4JZ8ZoD/FmR9LeIls+ 39pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qw/hYqwL"; 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 ju11-20020a170903428b00b0019b0fbb97e9si30870440plb.182.2023.03.29.09.06.10; Wed, 29 Mar 2023 09:06:27 -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="qw/hYqwL"; 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 S230503AbjC2QFC (ORCPT + 99 others); Wed, 29 Mar 2023 12:05:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231183AbjC2QEf (ORCPT ); Wed, 29 Mar 2023 12:04:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A397E5BA8; Wed, 29 Mar 2023 09:03:31 -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 ams.source.kernel.org (Postfix) with ESMTPS id 40210B8236E; Wed, 29 Mar 2023 16:02:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38526C433D2; Wed, 29 Mar 2023 16:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680105729; bh=lx3TrAbltwvzH4QW9sL8P4Gy/TS4hD3+w3Gd7oM5RoU=; h=From:To:Cc:Subject:Date:From; b=qw/hYqwLX8TRyklLaIXKUOwMpPUwE92/w392jCAT7LU9H3p2s1Hy95GHWq4BPWWp0 spIsY99rGY3SSLSZjj5ACIOD2qxvfcIPeGWgBP+AFF/W/NFN4vm6ELc5bE4OrLUjc9 WbiLVrxCKcf8Hwtay4hfIWu+KdU8goiMeKRoeD69D+UfK9n8kGUcKdvZB0Zo+27EqK sV9WvgMvsdWt0PPq4eDgM0hc0kUC0R9SVgDwZm4lphgrIu1a3GoMwNyd11KrFUvTAJ kEZNpIo+M0kI7POj95RBM754pW7tZIxG6OqhIM2wa7uMNqGRJx4/qUxzfJlj18+60Q YvLMe0mmsTmlA== From: Frederic Weisbecker To: "Paul E . McKenney" Cc: LKML , Frederic Weisbecker , rcu , Uladzislau Rezki , Neeraj Upadhyay , Boqun Feng , Joel Fernandes Subject: [PATCH 0/4 v2] rcu/nocb: Shrinker related boring fixes Date: Wed, 29 Mar 2023 18:01:59 +0200 Message-Id: <20230329160203.191380-1-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 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. 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