Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5148535rwl; Sun, 8 Jan 2023 09:21:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXuPtl4yBJmTUj733qOXavnDnAnkwtnFG7iF44cAZ6oYTkB1SSIWKa6fmg5WD0wr89OTwcgl X-Received: by 2002:a17:902:d584:b0:193:23b6:d23b with SMTP id k4-20020a170902d58400b0019323b6d23bmr4931946plh.16.1673198486533; Sun, 08 Jan 2023 09:21:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673198486; cv=none; d=google.com; s=arc-20160816; b=MhMccITu56F+FeXjQ0wpfmbVHfxrfGIJZRKZEW/pbNxAFX+J9mqzMDsyRTXj1ptpeM ihu40J7zZjou9YM+eRoEKXIhybeiOC0llJq/J4zuPXFiQ1beCyE/pxyt6XMMXgQf/NUt uAlNdgaByyP3JTq2OCRWvKUVmyKkmZoiV2EYEU3rGA06CEnI5vd0EI9+33Tg7BfbsQQt 1KNQYpODKq/726cMYD0bKfcuH8WALk+XAHE6/+QYpzVTBuqSYJZOLH4Vs02/0hwW9XyT 8qyembG9COblPrDu9Iqg2udO+0GrUX3pc3R976fmnEfE3rLsWTV7tzhrOwyIhU1H1nze 8iuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=sG1kd9nG8Kca+yodSL4yKB/Xft7zBs52HjXal9FqxV8=; b=wHWPwCcGg7ANGrKi2RQWRPX8aknJXmWB0hJmUYl/s21CteQjtwZQkghBjKmzwJE4dP BrIJ3L7O1TNIihP6tooJXTJAcd1Rer/6OhfkH2HNVTo4YgiPpQ+RhDU+agYZWZIQEc0m Fdr65EkvD/qiqAZ/ZsMfX2YmPKL/kIRYopJQk1FRTlrncER47bWBs5iO3bgOKqCPBvx+ 9WwejyAgl/ZPPzECutgL8ExP1eP2XfjAAxCBc+k7csotyNMj4GVbAFI/O4dL3rfQqwTd Vh2Vj8NdgGort8iJS4rfvjUcLXyV2lxprehUpvJhNRvcfqjCXeqv8AR1Wy8dCta4ZWw6 yLTg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a170902b60500b00192e0d40ff3si6728766pls.207.2023.01.08.09.21.19; Sun, 08 Jan 2023 09:21:26 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231442AbjAHRCt (ORCPT + 51 others); Sun, 8 Jan 2023 12:02:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbjAHRCr (ORCPT ); Sun, 8 Jan 2023 12:02:47 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18413A6; Sun, 8 Jan 2023 09:02:44 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 9222E68AA6; Sun, 8 Jan 2023 18:02:40 +0100 (CET) Date: Sun, 8 Jan 2023 18:02:40 +0100 From: Christoph Hellwig To: Tejun Heo Cc: axboe@kernel.dk, josef@toxicpanda.com, hch@lst.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] blkcg: Drop unnecessary RCU read [un]locks from blkg_conf_prep/finish() Message-ID: <20230108170240.GA19165@lst.de> References: <20230105212432.289569-1-tj@kernel.org> <20230105212432.289569-2-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230105212432.289569-2-tj@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 Thu, Jan 05, 2023 at 11:24:29AM -1000, Tejun Heo wrote: > Holding the queue lock now implies RCU read lock, so no need to use > rcu_read_[un]lock() explicitly. This shouldn't cause any behavior changes. How so? > While at it, drop __acquires() annotation on the queue lock too. The > __acquires() part was already out of sync and it doesn't catch anything that > lockdep can't. This makes sparse even more unhappy than it was before. For now please keep the annotation.