Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1188174ybl; Fri, 24 Jan 2020 17:33:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxeXVqb2r5vfkAuPIUQvhZWEsm6g4RL5FL5NCHVw0S5IJNz7APT/TmvO5ECh+D1G02rE/QR X-Received: by 2002:a9d:6ac1:: with SMTP id m1mr4835271otq.101.1579916039606; Fri, 24 Jan 2020 17:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579916039; cv=none; d=google.com; s=arc-20160816; b=LdavrcBcupJItpC7q9S3U0s8ogi/TcKctmaN/idaf7lbzIstfjiu/8RkMmO41kgIDH EN9uOox1gR+q3Hg7l5XFKU9wWATivmZYoQHRN3zOZTmQMF2D5IVEW7lI3EJZ8L4esw2i VdnBdjHc7/5VvOb1ULu9IvwoJt5CEiXXPUnq0WRHk8W8kjmMjrQDClQGv9fi7V23b8LI 06Svy/+lo/E71LZj9mpzdsFNkAWPWxLc3qC8MVGObgXem/YFogvqcKpkOr0FP9VgGRta YtUxoNvTCmJBuviLrzvep0WEzqNx8HeJ9FMsH1IQL9/w1EuAFcpJbOu/7raMZHTDWoHw ZsWQ== 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=DsoG39HRF5SQvq7A5XxsjCWxy62CkNT6AERFH6K0DbA=; b=LJE7SR2BGDKTq1WXo4tlgr0fy95dbYU6+rsYV/Rc/+mogk12UA1vWxfB1+pBBTrZqp aS/IPbZNWouIb3D1hMFUQhgbNlD6i3mJE7xDPuFjrdrDODI3Y2YDB1W03VWBsKHE4ooA cansxH1vLRDlf8zay/dW/0PRIc0nmyf5KNFmk/diiFhi7PE6Y3Z1iBS76NtwncIbH/hg livgEdTTb5CW8kseFj39B9NLSQL7f5ZBiT9HmaxjALm3yZ1y79GO7yG56cLa8wrDYbZS cDbpEF3Xi8ACjY5J+SB5TO9NgK/d9+yCLPyCSNz+hhEwZXjuo3thUYYzGIZTDNyBNyFC 1kag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RxXKHKet; 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 x24si3806218oto.255.2020.01.24.17.33.31; Fri, 24 Jan 2020 17:33:59 -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=RxXKHKet; 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 S1729327AbgAYBda (ORCPT + 99 others); Fri, 24 Jan 2020 20:33:30 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:24907 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729195AbgAYBda (ORCPT ); Fri, 24 Jan 2020 20:33:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579916009; 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=DsoG39HRF5SQvq7A5XxsjCWxy62CkNT6AERFH6K0DbA=; b=RxXKHKetZsRdzj3V7JhQ8pFzNdsmcszfyGue555myzZv0rNXIgiNKA386ZZDAU2nxPTrO7 JIXSTVa9W+UF7Ktj2BjqEf319wkEZzRgsN66Jr9K3urZKW9sNRFjEPa0T5WCNdnjc7vQwp Asa4BTO9XQigE46jIqaaEZNDlMeY+cs= 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-42-iCOxGx4NPnKkNba6A8zr-g-1; Fri, 24 Jan 2020 20:33:27 -0500 X-MC-Unique: iCOxGx4NPnKkNba6A8zr-g-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 674C7100550E; Sat, 25 Jan 2020 01:33:26 +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 9B4E660BE1; Sat, 25 Jan 2020 01:33:25 +0000 (UTC) From: "Benjamin Coddington" To: "Trond Myklebust" Cc: Anna.Schumaker@netapp.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH] NFS: Revalidate once when holding a delegation Date: Fri, 24 Jan 2020 20:33:23 -0500 Message-ID: <43817735-6694-406C-A66A-485A716C7FC5@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 24 Jan 2020, at 14:24, Trond Myklebust wrote: > On Fri, 2020-01-24 at 09:09 -0500, Benjamin Coddington wrote: > > This patch needs to fix nfs_force_lookup_revalidate() to avoid the > value NFS_DELEGATION_VERF. I don't understand why. Doesn't nfs_force_lookup_revalidate() just bump the directory's cache_change_attribute, which is value we don't care about at all here. This patch just sets a magic value on the dentry's d_time after a revalidation occurs for that dentry while holding a delegation. It doesn't care at all about the directory's change_attr. What am I missing? Ben