Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp27202imn; Wed, 3 Aug 2022 18:05:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR6GyVY6jZoHHeCC6d6SezQL5fl4PWtWkaVcyxgVog0T2DUf3IlexJ1PPevPiY6q3HOwAut7 X-Received: by 2002:aa7:d283:0:b0:43d:8f56:f388 with SMTP id w3-20020aa7d283000000b0043d8f56f388mr18457234edq.53.1659575130506; Wed, 03 Aug 2022 18:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659575130; cv=none; d=google.com; s=arc-20160816; b=QkkyX28uE2gAAbBZJgKN/lzyJEnh6zgUvfgGSNFKDhGooZ/830qJBYgjh5UA9/Wui4 RbOtMJtVv6kK+MdTMRqPD40ZcHKKfWjL9Ahfljt+le7XQOY0krqbouLuTxMAIeQTnr/g TA62RlwNxt6283KmusWVxu3fP/KONB7IeaYCZ/0hy/gZqsMougjE1patmAp5jLFTwD0u LSRCPwadspTmeoW3nn81sRiZgqE74nXaerlaRoB9fkLpLgDoNUj8EMORumCpk8V+zhW9 hikCjKXsG3n46Q1b0RE8AodeMXl+DsWM1j4pvdPBdiIz14YKx/XhXbjx/KnaYX38YtHu fgPg== 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:dkim-signature; bh=nAB+N4hwyXZEv+zCt+3ePS/cJYUGpbG3i/MA3cVn1QA=; b=fqV2RYi8JDCxRDEhPUPl0O0yZGFGnhj5o22REwatGSQjkiTkxnNuEmiqy9Fni982zN SxrHtA7ANjzI0TkN4cyWR0ADWMeuvWCpS8IsnSCy36QivSYlkrTEBUGDItOF2uC4BwJt Nd6FsWpsmpF74/vanUSnewA169KTKNd2hngmD0vnCROl5nuHPpgMw9Qvlxpqjtg6hRL0 ozervMnA0PKDL7WOqTncpQj/pRukB/N5xkH1z5SsnVY3Vq+oUAR0c7vm5VEO93B6wh98 GP7J/JDqxN9AZW1MIMwe7j7P8cQn4Kdx7mLsyVhcQC6SqTGMJI1F6LyyV2d9dXtJvLYx aZ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ENEeIvyB; 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 eh15-20020a0564020f8f00b0043b753b1e6asi13519995edb.225.2022.08.03.18.05.05; Wed, 03 Aug 2022 18:05:30 -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=@infradead.org header.s=casper.20170209 header.b=ENEeIvyB; 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 S238701AbiHDAmg (ORCPT + 99 others); Wed, 3 Aug 2022 20:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233944AbiHDAme (ORCPT ); Wed, 3 Aug 2022 20:42:34 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2333E5A2F5; Wed, 3 Aug 2022 17:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nAB+N4hwyXZEv+zCt+3ePS/cJYUGpbG3i/MA3cVn1QA=; b=ENEeIvyBL5BLCD1ba/tFivvEJw Vy/QWIPpDui+2ZX5pbndYY2nd4hYbYlwykX/Q78DuPcOEhzI0ua2uAAkjkobDquI0M2Xho2OBUYLv 0tRz/GD1U0wsyY/fJJsKaOS4lx4EgCSqFtXQo56nCLvBbPPPOA0/QNMzl4FCejNNB4jhlyYbhkW1z k0N4ODNRV51ze4h6SGvWE/CQKcsJzwng5R+1pQ/Gb5+XX9qRIW1fExKoKR+vN8VV2glLXFGuHdnVI eCMVu0FUQBCq2pMxu9au7U6hqqaoXxvvPtde4LwjEd9o7kMmdEaDa5i6OE63zRf72hWRyiXLeSvRL OJPa0M+Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJOwT-009n3G-L6; Thu, 04 Aug 2022 00:42:25 +0000 Date: Thu, 4 Aug 2022 01:42:25 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: Steven Rostedt , Al Viro , Sebastian Andrzej Siewior , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [git pull] vfs.git pile 3 - dcache Message-ID: References: <20220803185936.228dc690@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Wed, Aug 03, 2022 at 04:42:43PM -0700, Linus Torvalds wrote: > On Wed, Aug 3, 2022 at 4:24 PM Matthew Wilcox wrote: > > > > On Wed, Aug 03, 2022 at 06:59:36PM -0400, Steven Rostedt wrote: > > > > > > preempt_disable_inlock() ? > > > > preempt_disable_locked()? > > Heh. Shed painting in full glory. > > Let's try just "preempt_enable_under_spinlock()" and see. > > It's a bit long, but it's still shorter than the existing usage pattern. > > And we don't have "inlock" anywhere else, and while "locked" is a real > pattern we have, it tends to be about other things (ie "I hold the > lock that you need, so don't take it"). > > And this is _explicitly_ only about spinning locks, because sleeping > locks don't do the preemption disable even without RT. > > So let's make it verbose and clear and unambiguous. It's not like I > expect to see a _lot_ of those. Knock wood. Should we have it take a spinlock_t pointer? We could have lockdep check it is actually held.