Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7970713ybl; Thu, 16 Jan 2020 08:32:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxBR2Yz6hTsd0r3qzvaHprPh+j1ldmdZtuS7eOWHgLQtO8WAeS8ns9eTjIgXJdQIZqulL2y X-Received: by 2002:a9d:7999:: with SMTP id h25mr2673620otm.347.1579192342960; Thu, 16 Jan 2020 08:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579192342; cv=none; d=google.com; s=arc-20160816; b=IkEqmF1wjgWY2VnGQgj2ZBeYlPxv/MH6lTGt0I7UZX+oYdFUNYfAf6ABHsB6q+1VvN tQSKMweZl8Ojs0TD3lRAP6AKmW29pdTUDSOANaghDwNMu1V3SOjPF5Y5sEOof2WESuND iwZjzRCbsqPv9nYcSLLybSlZLJZq8CVMTnsRhc5FwPuqjaCnaFixbXv7Menavc/sXDsh GsH5HH2ILVgv9EdjENrnZp7JIHkSA80KfD7ds1/0nl6MlPhgNrjUtnRu2Cjf7tLge8cF TahvRE7pA4u0Er40DpnMBLdIeq3gkE3km+0kR7F1b/OSUTZFXBTqYRIIZEFQNSnN+aTn 1OCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Q60n1VZsESu3zhrmHy6lpyB2sF3Ad29tA2SxUDw1vL4=; b=dtY3an63OR4TYLAlliy5zibswh+oCP/YWluUJFc83cqKodA8dssuX9J5f9LZBSKdbZ 1b/w6FVXhsDxLm9jG0bqulkW1kI/2YWOzbWD48THdShRSPr9FPyBuvtjjtV+4smgnaLC WwoiJTmGJeTNk649Aw2vnqvVeikYEvzPDRBGVWZrXYqfNvFVob2TyzhSnIFR7MYKRElo sFm0ii4dUMdSZkWVOuXq9UvaUcHHCDmP+qHVP1ruyDWPjwhJMWl7jv5xaA/hHbXVsILc 0cwaMQMjxHusx2l7gOisbqU/ccbzvyJY4s8o8cYts3R2OPOnTTXgpPvbjsRohvlbPS3J eqeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="HTkrF/h5"; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si12005317oia.232.2020.01.16.08.32.10; Thu, 16 Jan 2020 08:32:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="HTkrF/h5"; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726587AbgAPQcJ (ORCPT + 99 others); Thu, 16 Jan 2020 11:32:09 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:52334 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726370AbgAPQcI (ORCPT ); Thu, 16 Jan 2020 11:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579192327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q60n1VZsESu3zhrmHy6lpyB2sF3Ad29tA2SxUDw1vL4=; b=HTkrF/h5OXXhv1HZgbvcOBIPbG0ytGJFrCT7tHjBJdkVocX4jaQ3oAJXBBdx2fLoCpn7zW 9B8Ae4pGCO0Xmr6SPEvqzBAf3iw8mO4B2UYMCGLbcd7Wwgz2JoawBb01+QElcvCtLo4jQA HGWzj3CE6GGmLDGyb+pWP0/bR7UfSH4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-215-6waNMwwPPuqApST3VfPhEQ-1; Thu, 16 Jan 2020 11:32:04 -0500 X-MC-Unique: 6waNMwwPPuqApST3VfPhEQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 08CB6107ACC5; Thu, 16 Jan 2020 16:32:03 +0000 (UTC) Received: from [172.16.176.1] (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 81A7489D02; Thu, 16 Jan 2020 16:32:02 +0000 (UTC) From: "Benjamin Coddington" To: "Trond Myklebust" Cc: anna.schumaker@netapp.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH v2] NFS: Don't skip lookup when holding a delegation Date: Thu, 16 Jan 2020 11:32:01 -0500 Message-ID: In-Reply-To: References: <77be993185fa7f114f6856f74f2f7affb5bd411d.1568904510.git.bcodding@redhat.com> <6399DBA2-DA9D-40C3-80BC-6DCE94BB9C49@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 16 Jan 2020, at 11:02, Trond Myklebust wrote: > We should need to perform this revalidation once, and only once for > that directory, and only if we opened the file using a CLAIM_FH open, > or if we opened it through a different hard linked name (and did not > create this hard link after we got the delegation). > > Perhaps we could define a magic value for dentry->d_time that causes us > to skip revalidation if and only if we hold a delegation? Can we put the delegation's change_attr in d_time for dentries that have been revalided while holding a delegation? Ben