Skip to content

Commit d8d7cd6

Browse files
committed
Merge tag 'nfsd-6.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fixes from Chuck Lever: - Use correct order when encoding NFSv4 RENAME change_info - Fix a potential oops during NFSD shutdown * tag 'nfsd-6.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: NFSD: fix possible oops when nfsd/pool_stats is closed. nfsd: fix change_info in NFSv4 RENAME replies
2 parents 4eb2bd2 + 88956ea commit d8d7cd6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,8 +1058,8 @@ nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
10581058
rename->rn_tname, rename->rn_tnamelen);
10591059
if (status)
10601060
return status;
1061-
set_change_info(&rename->rn_sinfo, &cstate->current_fh);
1062-
set_change_info(&rename->rn_tinfo, &cstate->save_fh);
1061+
set_change_info(&rename->rn_sinfo, &cstate->save_fh);
1062+
set_change_info(&rename->rn_tinfo, &cstate->current_fh);
10631063
return nfs_ok;
10641064
}
10651065

fs/nfsd/nfssvc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,11 +1082,12 @@ int nfsd_pool_stats_open(struct inode *inode, struct file *file)
10821082

10831083
int nfsd_pool_stats_release(struct inode *inode, struct file *file)
10841084
{
1085+
struct seq_file *seq = file->private_data;
1086+
struct svc_serv *serv = seq->private;
10851087
int ret = seq_release(inode, file);
1086-
struct net *net = inode->i_sb->s_fs_info;
10871088

10881089
mutex_lock(&nfsd_mutex);
1089-
nfsd_put(net);
1090+
svc_put(serv);
10901091
mutex_unlock(&nfsd_mutex);
10911092
return ret;
10921093
}

0 commit comments

Comments
 (0)