nfsd: Remove unneeded values in nfsd4_open()

This change “nfsd: Remove unneeded values in nfsd4_open()” in Linux kernel is authored by Kinglong Mee <kinglongmee [at]> on Mon Jul 13 17:32:05 2015 +0800.

nfsd: Remove unneeded values in nfsd4_open()

Signed-off-by: Kinglong Mee <>
Signed-off-by: J. Bruce Fields <>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit 6cd2266.

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 fs/nfsd/nfs4proc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index d112c8a..e779d7d 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -362,7 +362,6 @@ static void nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate
 	__be32 status;
 	struct svc_fh *resfh = NULL;
-	struct nfsd4_compoundres *resp;
 	struct net *net = SVC_NET(rqstp);
 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);
@@ -389,8 +388,7 @@ static void nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate
 		copy_clientid(&open->op_clientid, cstate->session);
 	/* check seqid for replay. set nfs4_owner */
-	resp = rqstp->rq_resp;
-	status = nfsd4_process_open1(&resp->cstate, open, nn);
+	status = nfsd4_process_open1(cstate, open, nn);
 	if (status == nfserr_replay_me) {
 		struct nfs4_replay *rp = &open->op_openowner->oo_owner.so_replay;

The commit for this change in Linux stable tree is 6cd2266 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *