Skip to content

Commit 93c128e

Browse files
jtlaytonchucklever
authored andcommitted
nfsd: ensure we always call fh_verify_error tracepoint
This is a conditional tracepoint. Call it every time, not just when nfs_permission fails. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent bd86c69 commit 93c128e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfsfh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access)
392392
skip_pseudoflavor_check:
393393
/* Finally, check access permissions. */
394394
error = nfsd_permission(rqstp, exp, dentry, access);
395-
trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error);
396395
out:
396+
trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error);
397397
if (error == nfserr_stale)
398398
nfsd_stats_fh_stale_inc(exp);
399399
return error;

0 commit comments

Comments
 (0)