Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp429649rwb; Fri, 2 Sep 2022 17:15:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR62/ikCEEgN8c0bK7l0xeRVC6su6myUakmKcNSByeGjU9CkM0tu6MngZ4WE837nRgNkiQIw X-Received: by 2002:a50:ec07:0:b0:447:ee9d:effc with SMTP id g7-20020a50ec07000000b00447ee9deffcmr30198386edr.245.1662164157972; Fri, 02 Sep 2022 17:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662164157; cv=none; d=google.com; s=arc-20160816; b=Tbqf8VZDJlnb0E+XphnQbz+iuSRCh5E3eC7zDMCiqD6WUUXjBNsJ+dNRO69TswbNwR 8jh/4CsjBW4QYLTZAVjffVBHmA6r5dUyCP29gWsu8yCm/vElZuTQj8ha35upaXhybCkw 96lxrYlVFqW/J/HwBNVqZpi16ztNnTpDSZWvPIrqZk1eD5ztFVyP9hoVDIFIeAoQlEqW MuMwIbqtOyDJPqWq+qnPlbPyb3foKQmBhLNujPWFxMWz53iNQ1Ln9ukR4uWPfS9y1RWO 8S0amAzFZl6ByG0tZW28eN/zirPenJIMXI2u245tcNXo84ok7Id3hFGG9fHG5cxeW0Q7 7TOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KdeTuqcqB+4Nrt8OAhVoYy5O7SMidBuWR9jEOoug8WU=; b=ztNJvW+cvgQjhOqxwKThgIBlZcBpMHOk3GAt9w61IsQM03QLvj14pLV/zNo9AG4g2w l9sD7ZhHB2iDToK6siEuExVNH1qnBfKvGTDMC0MmMq/ZMzrxB/SVtgp0PUROanHCW0Ji 06BPvNtEBLfw67XoQRA27Kwl+REgcqeO1MpdAo0oikQzVPxEE74pnHwRuMM14wHFXUo5 kOgLUAX2gcGTkdmPJ+Zrayyto/KehIJiFAYSvidgX//2HhSq5Wn2D2PtS85+tpSKRp6T Ga+OTewdloHQK6rPyYZp8HSFNKuNTds5lQBdZgeoAzVjGyPVU3FNfbAyfuAR6StsoO3W /8bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=cgNDBcJT; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u25-20020aa7d0d9000000b0043e8b2ed68esi2280390edo.605.2022.09.02.17.15.17; Fri, 02 Sep 2022 17:15:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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.org.uk header.s=zeniv-20220401 header.b=cgNDBcJT; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbiICAGP (ORCPT + 99 others); Fri, 2 Sep 2022 20:06:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiICAGP (ORCPT ); Fri, 2 Sep 2022 20:06:15 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A134DF660; Fri, 2 Sep 2022 17:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KdeTuqcqB+4Nrt8OAhVoYy5O7SMidBuWR9jEOoug8WU=; b=cgNDBcJTeZ5wmsY7k04DFpxV0U ZeH6ksnjmTDz0Y9BZ6jj5+75ez+lHZbiJ3axVd5oIqBkI5ud3s4a3f7VdK2/iEm50vENAcEzNWSy0 hUSvj2huKpM4j9k/3pGyAlNgYiCTzMMN+gh1H9GfW2qVSZxL8i3HWUnOCP818BbV5IcBata7qCMo0 TV18JArbO7QgUWEwe7+U9x0VJ8q6Gp2NUdTMs4kITnbiyH4MEKaDKu0ovhl7JivBg1lTTSVNjkFj3 NxD8NUPou2Z4g89i3Ie/2BjOb9sf3l2inYzCU3BTpuoBT+tciy91pd8FxB5+kenWiBW2Z3XmdH81f esTdl4XA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oUGfg-00BUUx-SB; Sat, 03 Sep 2022 00:06:01 +0000 Date: Sat, 3 Sep 2022 01:06:00 +0100 From: Al Viro To: NeilBrown Cc: Linus Torvalds , Daire Byrne , Trond Myklebust , Chuck Lever , Linux NFS Mailing List , linux-fsdevel@vger.kernel.org, LKML Subject: Re: [PATCH 01/10] VFS: support parallel updates in the one directory. Message-ID: References: <166147828344.25420.13834885828450967910.stgit@noble.brown> <166147984370.25420.13019217727422217511.stgit@noble.brown> <166173834258.27490.151597372187103012@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166173834258.27490.151597372187103012@noble.neil.brown.name> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-nfs@vger.kernel.org On Mon, Aug 29, 2022 at 11:59:02AM +1000, NeilBrown wrote: > > When would we get out of __lookup_hash() with in-lookup dentry? > > Confused... > > Whenever wq is passed in and ->lookup() decides, based on the flags, to do > nothing. > NFS does this for LOOKUP_CREATE|LOOKUP_EXCL and for LOOKUP_RENAME_TARGET Frankly, I would rather do what all other callers of ->lookup() do and just follow it with d_lookup_done(dentry), no matter what it returns. It's cheap enough...