Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1674865pxm; Thu, 24 Feb 2022 07:24:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVW/fLB1tBm0ic6h8CWcy/RM98R9ousphjOGpOKBscxMDbvlTxfwlgsVSUwbEpIeYPF9Au X-Received: by 2002:a17:906:ce52:b0:6cf:54e5:df6 with SMTP id se18-20020a170906ce5200b006cf54e50df6mr2650001ejb.740.1645716295697; Thu, 24 Feb 2022 07:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645716295; cv=none; d=google.com; s=arc-20160816; b=yLYRkA8U1BSQ8wWIX3aadmRxNlWa4Q5vsuCqYoz+OCwUjFa0EoJRzmNVHEjQFoaaVR Eo3JXeGpIfLeYkueEWlNRINUGxW9A6JYb6PbJRrEgq7Zm64Hz8dtDLekV+QajKkH21Nh gIVZnzM/i9kH8PT/ZMHWaxDqZWvXy+KsA2+JWEixeJdQXudMVfLQiC5qJX01J5lDqvmp 8eFmh3bTEnYPR7ZZWTgBzp7Am1g/i/wLNpHoDhlvFTflU4NrCZ++M1U9k++DfygXf/pD 5EgqF3ns496+E8SOO4f8yE5VQK9bfg8uTPqLkNOTpshc6Uvw3HHu/Fe5lPA2RyxDH9M2 Cgew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KfVrBmYIOLy9qEqBFvbQ0J6iX/OFf0t0rPT33y0wU9Y=; b=yUVn5GshAS/+VBrFWgYjRY86ilqHB6ntEa+lqBwqKSj7IwhPUbvmagyn8fJRP3R0TE aTGjufnx+O8NZK/8ZhXJRhPtIIFpPS4ZeUsjufFXjeI22B+qIu71MouAyAw5Vp3VEyIP pP+bfpLqyDNM8Xj7URU18YiXLoNfnW0X4Bz93nigAuexj//hOifyvXCD5Y2TQSFw1ZQV c5PWfkO5YmeXM21pRwIUJ5D8wYCWd7iNi2aE3q+JrfKY5yyKY2V7nA+aV87THRRnNKdP NZGmc/YHJyu/I5zunxbwzOrPnBRC7GByxnBvKq55Vij1vCEYdf8j1zbrN3HLVawFLDID l5WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Med5YxeC; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jr5si1793750ejb.696.2022.02.24.07.24.17; Thu, 24 Feb 2022 07:24:55 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=Med5YxeC; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233446AbiBXOPX (ORCPT + 99 others); Thu, 24 Feb 2022 09:15:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233212AbiBXOPW (ORCPT ); Thu, 24 Feb 2022 09:15:22 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B53F2294FD8 for ; Thu, 24 Feb 2022 06:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645712091; 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=KfVrBmYIOLy9qEqBFvbQ0J6iX/OFf0t0rPT33y0wU9Y=; b=Med5YxeC9Hzgo80XBjsMt8EbX21n6snY8erv29M7rUNxqytzi+zMVCrnxHCAGSAMzeNQu1 La/61wn/biuYwsZTy66aMdsvxrw7FGw40VHTQcpTRzd/WKO3b64F4S2IaQh1OUHxHR083o Qw1CFRztX5RE4Kpc1U6dSZDEWMRetgc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-367-daPVagy7PX2tf55BdQMLhA-1; Thu, 24 Feb 2022 09:14:50 -0500 X-MC-Unique: daPVagy7PX2tf55BdQMLhA-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 73A80804310; Thu, 24 Feb 2022 14:14:49 +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 231768400E; Thu, 24 Feb 2022 14:14:49 +0000 (UTC) From: "Benjamin Coddington" To: trondmy@kernel.org Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH v7 02/21] NFS: Trace lookup revalidation failure Date: Thu, 24 Feb 2022 09:14:46 -0500 Message-ID: <43364F7C-BEED-4C35-8745-9181AD2D9F57@redhat.com> In-Reply-To: <20220223211305.296816-3-trondmy@kernel.org> References: <20220223211305.296816-1-trondmy@kernel.org> <20220223211305.296816-2-trondmy@kernel.org> <20220223211305.296816-3-trondmy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 23 Feb 2022, at 16:12, trondmy@kernel.org wrote: > From: Trond Myklebust > > Enable tracing of lookup revalidation failures. > > Signed-off-by: Trond Myklebust > --- > fs/nfs/dir.c | 17 +++++------------ > 1 file changed, 5 insertions(+), 12 deletions(-) > > diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c > index ebddc736eac2..1aa55cac9d9a 100644 > --- a/fs/nfs/dir.c > +++ b/fs/nfs/dir.c > @@ -1474,9 +1474,7 @@ nfs_lookup_revalidate_done(struct inode *dir, > struct dentry *dentry, > { > switch (error) { > case 1: > - dfprintk(LOOKUPCACHE, "NFS: %s(%pd2) is valid\n", > - __func__, dentry); > - return 1; > + break; > case 0: > /* > * We can't d_drop the root of a disconnected tree: > @@ -1485,13 +1483,10 @@ nfs_lookup_revalidate_done(struct inode *dir, > struct dentry *dentry, > * inodes on unmount and further oopses. > */ > if (inode && IS_ROOT(dentry)) > - return 1; > - dfprintk(LOOKUPCACHE, "NFS: %s(%pd2) is invalid\n", > - __func__, dentry); > - return 0; > + error = 1; > + break; > } > - dfprintk(LOOKUPCACHE, "NFS: %s(%pd2) lookup returned error %d\n", > - __func__, dentry, error); > + trace_nfs_lookup_revalidate_exit(dir, dentry, 0, error); There's a path through nfs4_lookup_revalidate that will now only produce this exit tracepoint. Does it need the _enter tracepoint added? Ben