Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8259579rwl; Tue, 10 Jan 2023 11:00:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpTb4u0vGo3B5lPDvtq5ttkTu8wGRcwXEbBRPH5B7kpsnyY3q3bttE9e+5HpZCdL+qTlZ8 X-Received: by 2002:a05:6402:5006:b0:499:d1ca:6d82 with SMTP id p6-20020a056402500600b00499d1ca6d82mr1650083eda.31.1673377215847; Tue, 10 Jan 2023 11:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377215; cv=none; d=google.com; s=arc-20160816; b=nK5tNGBC96IKzpaMx+vDXDIGdYi/azI/t5WueJWYA8/Nx6vZIxKfKctsbkLCYdwyyp hW0iKjIv490TSUioHAc16ifYoFZKejb4w4euG93Ymbrh5Vr26YsNqBlPeXOfOk/Rh/p/ T2z/y0W3c3Hq/MY8UcDV8HFHk4YORMCP6VRNMwx5fkZHSnBdcGV0g/S90+G9ZuvMFVqY +SXQ+2UkrgBDGIGabYvXj+LtSLMFZkbBJyhY/UEUUdfHgHSrqWlP64zyfaztF04VpJut Q5dpucqvk7PkPykKg8oh40hUOXiC48bA1kY0KFt+oRwaHwiKOiQ7Sk2ZhTTzyYTQopFc eGKw== 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:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=7DSDWSC5oI8TQxnm4gch91xIJryMU4lgAF90s/UwWWk=; b=IylpVgxkiJFkE7i6/9XqTnYkr9gKk3fdVlGMpZIkv4nrF8a0adYYyjUt34XWeKqu+e iO5yCscVLS6J8n8ID5zhvNO2EDxVSOTsASepVnqwKvP1x4y8GPqWz+78jGZaGpDjla8a VozZ0V2aShilw1Upv5t64VmA6quP7vnrtkMyoQCNWMHJXmAwcWwKVadLM4xJuKBPJFgd ywHb3hzVQh4fJqcbnI+8nNgKJz+e7OG2fTIduDja1WtLRn9qqOi86Jma0nVITGzVekm+ ctnE/HByPMCTH0i94dMU1TaUlr9slnpQ7i6z/8SAMC1z+m7XGSySbv/Mw+w1JCrbLWKC 1IEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A3fMIP7f; 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 ef8-20020a05640228c800b00486ac69b9f3si11760177edb.327.2023.01.10.11.00.02; Tue, 10 Jan 2023 11:00:15 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A3fMIP7f; 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 S238840AbjAJS3M (ORCPT + 53 others); Tue, 10 Jan 2023 13:29:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234439AbjAJS23 (ORCPT ); Tue, 10 Jan 2023 13:28:29 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC075633AD; Tue, 10 Jan 2023 10:24:10 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id jn22so14055797plb.13; Tue, 10 Jan 2023 10:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=7DSDWSC5oI8TQxnm4gch91xIJryMU4lgAF90s/UwWWk=; b=A3fMIP7fGQT8mhJMIpgNcr0rts9CVAZRFeqHDJG8x53GoQiiiIF1b8cGpuE0hHa53P ltgntzNTQNGojWqN/Lnq9CocTb1V8MOhbc3yb0lUZ25Ycbj+YNGEAToLIZ+UAozb9OmE ZypcGHDDE4xhl5bYlMtsNeO+L+J6omu91J/8swISZgxP8phCaglMphO8dcyP+lSMdERs 9S+9JHgsFjD+HylQ3fAksbrOVnsc/zIo6yP5bc7ikoyO8mMFSN4uLi5mGOuKtOJeNPoz Rx05hFTUZqJZODLB+URCvYmDuogQgRdLBDVFRD9G52SiuDzRrVw4Qe1vGnXr6NzW1myl pCiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7DSDWSC5oI8TQxnm4gch91xIJryMU4lgAF90s/UwWWk=; b=O5vkKvg9cgMTBWssww5RVOy73y7E8DSyOL+piG+7BNIiRb+ho+DPVfm/c2QnzUIDfC +gS+ndFGd/i42bqJOWJwK1UGBu0f1oh4lpSpOUUUn1nZkB5GyqjBVwAEvExEgURic4kG FQEGiPChulg47TS0+QL9pMOOvuT2X2UH+Tp7WWJBLctyO8wkbk0eSZbYJ2OnLfzbcK2p 38mNiSTk1/rsN+ep4PTmBf2KsT5uXukyUc3JQv9x5HYm+I1gfmGrTTG/9/n8zu1KF4+Q b+2s5eRy1R831TLEhk/9qCVaZa0xmROn4W/Vhkwf+Tec5iSyM+wUz79vfUqXzACreMlp OwRA== X-Gm-Message-State: AFqh2koDorprPTuUMWnga1ZQh9CUo64ZLQLD4ILb0RUHxKASMi48jskF 3GBlJiTY141Z+sxp581o0fU= X-Received: by 2002:a05:6a20:8423:b0:b5:f180:56ab with SMTP id c35-20020a056a20842300b000b5f18056abmr8270009pzd.60.1673375049955; Tue, 10 Jan 2023 10:24:09 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id w18-20020a170902e89200b00186a2444a43sm8400073plg.27.2023.01.10.10.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 10:24:09 -0800 (PST) Sender: Tejun Heo Date: Tue, 10 Jan 2023 08:24:08 -1000 From: Tejun Heo To: Christoph Hellwig Cc: axboe@kernel.dk, josef@toxicpanda.com, 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: References: <20230105212432.289569-1-tj@kernel.org> <20230105212432.289569-2-tj@kernel.org> <20230108170240.GA19165@lst.de> <20230110064900.GA10277@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230110064900.GA10277@lst.de> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hello, On Tue, Jan 10, 2023 at 07:49:00AM +0100, Christoph Hellwig wrote: > On Mon, Jan 09, 2023 at 10:48:55AM -1000, Tejun Heo wrote: > > Now that all RCU flavors have been combined, holding a spin lock, disabling > > irq, disabling preemption all imply RCU read lock. > > Can you write it like this in the commit log, please? Sure, will do. > > I can drop the changes but this actually bothers me. The annotation has been > > broken for a *long* time and nobody noticed. Furthermore, I can't remember a > > time when __acquires/__releases notation caught anything that lockdep > > couldn't trivially and can't even think of a way how it could. AFAICS, these > > annotations don't contribute anything other than preservation of themselves. > > I don't see why we would want to keep them. > > People have noticed it. It just hasn't been a priority as there are > lots of even more problematic things. That doesn't really shed a positive light on them, does it? I'll drop this part but can you think of actual reasons to keep these around other than to keep sparse happy? I'm genuninely curious and have asked several people. Nobody had a good answer. Thanks. -- tejun