Skip to content

Commit 022c028

Browse files
committed
Merge tag 'nfsd-6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fixes from Chuck Lever: "Fixes for patches merged in v6.1" * tag 'nfsd-6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: nfsd: ensure we always call fh_verify_error tracepoint NFSD: unregister shrinker when nfsd_init_net() fails
2 parents ed53779 + 93c128e commit 022c028

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fs/nfsd/nfsctl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,12 +1458,14 @@ static __net_init int nfsd_init_net(struct net *net)
14581458
goto out_drc_error;
14591459
retval = nfsd_reply_cache_init(nn);
14601460
if (retval)
1461-
goto out_drc_error;
1461+
goto out_cache_error;
14621462
get_random_bytes(&nn->siphash_key, sizeof(nn->siphash_key));
14631463
seqlock_init(&nn->writeverf_lock);
14641464

14651465
return 0;
14661466

1467+
out_cache_error:
1468+
nfsd4_leases_net_shutdown(nn);
14671469
out_drc_error:
14681470
nfsd_idmap_shutdown(net);
14691471
out_idmap_error:

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)