Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1151936rwi; Thu, 27 Oct 2022 11:54:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5bGKAc3UsXgVMRpex2Rj9L8gaR1w+UBVnwd6YD5j1FlP1VvV+F/mkDd8cpkU81HrPAsnor X-Received: by 2002:a17:902:e8cd:b0:186:9efc:6790 with SMTP id v13-20020a170902e8cd00b001869efc6790mr25178708plg.91.1666896855452; Thu, 27 Oct 2022 11:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666896855; cv=none; d=google.com; s=arc-20160816; b=iWIrg6hRCEGcBiyG+hijwxDAQd/Q000uslCZ8R/OFnBZGkboO82VVdvJIW18r4E73J XfIZEYjBZVby9ARDh4L+zo7AbvjVg8V/IYHHd6vSIqsszSyyrHEIYJNbi49Y4MLUTL/V PIvL+thYuJfPqxSrv7yRsxFSz+m2cWWrkdzNOvkVAGsuJm1ZgJuJ5k5IWHfayDA54aSo IuRLSNjCdSoKO+UgQI6Ml2kLdgXVwTJWtqf8GqyDnBuoc8S/3ER5eC/Nl6XNU/GH00FB CAGjANQFfTzSWZMNGKPPWq+lf3aQFNidRrO8Ev+J2e5MCvDRqftQOu7kJkrlNt5TSN84 nTeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject; bh=jvXK3nCp/LhNWi+k4+uyHwhDf86R5JtV2IWWx8R2yT0=; b=JHccadzitigVGJPsaxIIOCfL84qWsInLBa17qm4z8DK9bX8ElNzwj7hIxumlBLleh5 1b8aEPyFZr7zYklddD1tCAe6eb6/I5XsIlKfjxNKsWA26vunJY5Qmo5DLb5WYtn8+WnG 43l3JKBzrax67Wd8UMeUWP09sChhSCdT0++kS0ZItY6xwhoAp0gCggvsump5lDOx1uDo wNwrbsVw6Bii57Sira2fZoUHIrTePfk7QO+mijLYMniEGBbUZISHBi94XvziJRnwIHxm a4drVNsXqCv2xbTTsgM+Nx9+7TcbI8RZM7tXm1it9d7TLmtDHr8kkJFfYBKsHcMvHr6I aqvQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a056a00198a00b0050df0383302si2639694pfl.255.2022.10.27.11.54.03; Thu, 27 Oct 2022 11:54:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234965AbiJ0SwN (ORCPT + 99 others); Thu, 27 Oct 2022 14:52:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235277AbiJ0SwM (ORCPT ); Thu, 27 Oct 2022 14:52:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360955AA2E for ; Thu, 27 Oct 2022 11:52:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C62D7623EE for ; Thu, 27 Oct 2022 18:52:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07243C43470; Thu, 27 Oct 2022 18:52:10 +0000 (UTC) Subject: [PATCH v6 05/14] NFSD: Trace stateids returned via DELEGRETURN From: Chuck Lever To: linux-nfs@vger.kernel.org Cc: neilb@suse.de, jlayton@redhat.com Date: Thu, 27 Oct 2022 14:52:10 -0400 Message-ID: <166689673005.90991.6059374701914648691.stgit@klimt.1015granger.net> In-Reply-To: <166689625728.90991.15067635142973595248.stgit@klimt.1015granger.net> References: <166689625728.90991.15067635142973595248.stgit@klimt.1015granger.net> User-Agent: StGit/1.5.dev3+g9561319 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 Handing out a delegation stateid is recorded with the nfsd_deleg_read tracepoint, but there isn't a matching tracepoint for recording when the stateid is returned. Signed-off-by: Chuck Lever --- fs/nfsd/nfs4state.c | 1 + fs/nfsd/trace.h | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index c829b828b6fd..93cfae7cd391 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -6901,6 +6901,7 @@ nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, if (status) goto put_stateid; + trace_nfsd_deleg_return(stateid); wake_up_var(d_inode(cstate->current_fh.fh_dentry)); destroy_delegation(dp); put_stateid: diff --git a/fs/nfsd/trace.h b/fs/nfsd/trace.h index b065a4b1e0dc..477c2b035872 100644 --- a/fs/nfsd/trace.h +++ b/fs/nfsd/trace.h @@ -601,6 +601,7 @@ DEFINE_STATEID_EVENT(layout_recall_release); DEFINE_STATEID_EVENT(open); DEFINE_STATEID_EVENT(deleg_read); +DEFINE_STATEID_EVENT(deleg_return); DEFINE_STATEID_EVENT(deleg_recall); DECLARE_EVENT_CLASS(nfsd_stateseqid_class,