Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp50841otr; Wed, 3 Aug 2022 16:45:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sCGixH8P6M0gZe1fGOdQ75ndu+lv5nLwh+lichUbMjAXfJ3pfd78/wC/JCliFgBF/seE2b X-Received: by 2002:a63:1a18:0:b0:419:aa0d:4f9c with SMTP id a24-20020a631a18000000b00419aa0d4f9cmr22074678pga.389.1659570337929; Wed, 03 Aug 2022 16:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659570337; cv=none; d=google.com; s=arc-20160816; b=N3L2kWsoyjcjD992VeIRw8POXsW9dDjZ/MmG9ylOFFYTAziycjlH3t/RsIX2r8XCHl 8MLVPMczAuakLaclVFmnx56Ja9zDi1HsmhGiBsVmZSAbzsbO5mF2bDmdC/18M1J7StSc DB3J45veVcZty6YmcDqxHpOBOXGfF3AhnJUCfqtyq3hF0I8xx5cdsn5rVAP2uYbqfxvH qA7+oD0eWcUZmpyvtzWES9yxIVarbfM4qi1gmedQEi5POYA55BdkdC1buHtZw2RHqONj cA4VKdxN/ScWF2hJMzM09/KSRgnD40xHwqg+GjpWSh4GhfHpECcco/8mlNymFGdQnKvH MTlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lgOA02+HwCaP4zKHggG8OC7Keut/1grVFRI+0RIkn4Q=; b=IGQiVBrUHUTNdY5PtOFRnF5+7M7lNPWrnD/469hQLjrbcw5BPtH+GPys8v8Eu+V8mt ygQmI3y7iS2hXjVXgIYtuLPpLicHkoWXjp2cq1ZyPY7RbOdYdZqVuSsLZ2EErxAwlVcJ GbElUJREzuWL1MCjp0g1dQkENdAPYHAzR+AXmUYkFTp4hYaAFvBaH40m6ghZWMgkzTu/ bPx4QoXoPY/2vFgX9wSHrlCUTTLUpX0dcXVgymO5RDMFWoW1geJNthA5OeJxbLzcmY1D WNck7RIgVU0I9E6QYP+duf+7cN4IKuYLhWWSDg/YBoABaPvCKj3DVSIZb83aRV0fgIkq 4gGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LufboehC; 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 a1-20020aa78e81000000b0052e0f69d8c3si4056563pfr.334.2022.08.03.16.45.23; Wed, 03 Aug 2022 16:45:37 -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=@linux-foundation.org header.s=google header.b=LufboehC; 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 S238589AbiHCXnG (ORCPT + 99 others); Wed, 3 Aug 2022 19:43:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236936AbiHCXnD (ORCPT ); Wed, 3 Aug 2022 19:43:03 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B7CC5D0E6 for ; Wed, 3 Aug 2022 16:43:02 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id m4so12262586ejr.3 for ; Wed, 03 Aug 2022 16:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=lgOA02+HwCaP4zKHggG8OC7Keut/1grVFRI+0RIkn4Q=; b=LufboehCuxeEuDV9oa12YE8xVcg0hXsGKqXDPs1LhGh8BIdrrINPAuvSCTpU10TMD/ VGEosdbgCowe20oYYLhzJMNjPqi2Y/StpYT90cJmAAqZlBC3BnyypkO8MOPzyDcJp3K7 vtDSS2o+GQ3BVHP5foN9lbi7evncrZccgyM0c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=lgOA02+HwCaP4zKHggG8OC7Keut/1grVFRI+0RIkn4Q=; b=YUhQVS4ue4xKPLeKMmE6L2GnS6jhPHivbwQpde/ZVuXcigPNY4WyEDuiBC9jd7GdFx W/CvOKNOSywC/83/6+AWjcR2UX/PZl8LOrAp/kSdpNHlpMtUvy7JWdaAUiNMxZnV590c 0ANVtwqTnUhACG6EONwfb7gL0qO7560tB5rcjzKTDjK897juggiG3pVi+JI4XnKB4iki W+X6dlnU6URKo+TVvjV3AYlTVo3CwjBH3mUMxG7wkTCRojk64yswNUh/Sxl6QTaYfASY EsO4UXZK+OMEZ4Q4ki1fclpljd42vnvQf3ky03Dkp3AvWU71z8FiJlZf2mf1fcYtkHmy jRoQ== X-Gm-Message-State: AJIora9G13J1kAnqfJPwuzceWsDV/14da9qRRYmglzaQpIv1UdxKrftA QfH2I56l+N8xXt1Pv7btzhrHRajrMDwhe1l1 X-Received: by 2002:a17:906:5d16:b0:72f:9f40:d1eb with SMTP id g22-20020a1709065d1600b0072f9f40d1ebmr21574305ejt.403.1659570180402; Wed, 03 Aug 2022 16:43:00 -0700 (PDT) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com. [209.85.128.43]) by smtp.gmail.com with ESMTPSA id r9-20020a1709061ba900b0071cef8bafc3sm7732419ejg.1.2022.08.03.16.42.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Aug 2022 16:42:59 -0700 (PDT) Received: by mail-wm1-f43.google.com with SMTP id r1-20020a05600c35c100b003a326685e7cso2233883wmq.1 for ; Wed, 03 Aug 2022 16:42:59 -0700 (PDT) X-Received: by 2002:a05:600c:1d94:b0:3a4:ffd9:bb4a with SMTP id p20-20020a05600c1d9400b003a4ffd9bb4amr3011922wms.8.1659570179354; Wed, 03 Aug 2022 16:42:59 -0700 (PDT) MIME-Version: 1.0 References: <20220803185936.228dc690@gandalf.local.home> In-Reply-To: From: Linus Torvalds Date: Wed, 3 Aug 2022 16:42:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [git pull] vfs.git pile 3 - dcache To: Matthew Wilcox Cc: Steven Rostedt , Al Viro , Sebastian Andrzej Siewior , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 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. We had a handful of those things before (in mm/vmstat, and now added another case to the dentry code. So it has become a pattern, but I really really hope it's not exactly a common pattern. And so because it's not common, typing a bit more is a good idea - and making it really clear is probably also a good idea. Linus