All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfsd: ensure we always call fh_verify_error tracepoint
@ 2022-10-12 18:42 jlayton
  2022-10-13 16:15 ` Chuck Lever III
  0 siblings, 1 reply; 2+ messages in thread
From: jlayton @ 2022-10-12 18:42 UTC (permalink / raw)
  To: chuck.lever; +Cc: linux-nfs, Jeff Layton

From: Jeff Layton <jlayton@kernel.org>

This is a conditional tracepoint. Call it every time, not just when
nfs_permission fails.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 fs/nfsd/nfsfh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
index 9c1f697ffc72..43bb34f1458e 100644
--- a/fs/nfsd/nfsfh.c
+++ b/fs/nfsd/nfsfh.c
@@ -392,8 +392,8 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access)
 skip_pseudoflavor_check:
 	/* Finally, check access permissions. */
 	error = nfsd_permission(rqstp, exp, dentry, access);
-	trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error);
 out:
+	trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error);
 	if (error == nfserr_stale)
 		nfsd_stats_fh_stale_inc(exp);
 	return error;
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nfsd: ensure we always call fh_verify_error tracepoint
  2022-10-12 18:42 [PATCH] nfsd: ensure we always call fh_verify_error tracepoint jlayton
@ 2022-10-13 16:15 ` Chuck Lever III
  0 siblings, 0 replies; 2+ messages in thread
From: Chuck Lever III @ 2022-10-13 16:15 UTC (permalink / raw)
  To: Jeff Layton; +Cc: Linux NFS Mailing List



> On Oct 12, 2022, at 2:42 PM, jlayton@kernel.org wrote:
> 
> From: Jeff Layton <jlayton@kernel.org>
> 
> This is a conditional tracepoint. Call it every time, not just when
> nfs_permission fails.
> 
> Signed-off-by: Jeff Layton <jlayton@kernel.org>

I've applied this to nfsd's for-rc. Thanks!


> ---
> fs/nfsd/nfsfh.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
> index 9c1f697ffc72..43bb34f1458e 100644
> --- a/fs/nfsd/nfsfh.c
> +++ b/fs/nfsd/nfsfh.c
> @@ -392,8 +392,8 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access)
> skip_pseudoflavor_check:
> 	/* Finally, check access permissions. */
> 	error = nfsd_permission(rqstp, exp, dentry, access);
> -	trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error);
> out:
> +	trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error);
> 	if (error == nfserr_stale)
> 		nfsd_stats_fh_stale_inc(exp);
> 	return error;
> -- 
> 2.37.3
> 

--
Chuck Lever




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-13 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 18:42 [PATCH] nfsd: ensure we always call fh_verify_error tracepoint jlayton
2022-10-13 16:15 ` Chuck Lever III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.