diff options
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index fb27b1db007b..05bc5bd63c95 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -3306,10 +3306,12 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo | |||
3306 | iov = &rqstp->rq_res.head[0]; | 3306 | iov = &rqstp->rq_res.head[0]; |
3307 | iov->iov_len = ((char*)resp->p) - (char*)iov->iov_base; | 3307 | iov->iov_len = ((char*)resp->p) - (char*)iov->iov_base; |
3308 | BUG_ON(iov->iov_len > PAGE_SIZE); | 3308 | BUG_ON(iov->iov_len > PAGE_SIZE); |
3309 | if (nfsd4_has_session(cs) && cs->status != nfserr_replay_cache) { | 3309 | if (nfsd4_has_session(cs)) { |
3310 | nfsd4_store_cache_entry(resp); | 3310 | if (cs->status != nfserr_replay_cache) { |
3311 | dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__); | 3311 | nfsd4_store_cache_entry(resp); |
3312 | resp->cstate.slot->sl_inuse = false; | 3312 | dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__); |
3313 | resp->cstate.slot->sl_inuse = false; | ||
3314 | } | ||
3313 | nfsd4_put_session(resp->cstate.session); | 3315 | nfsd4_put_session(resp->cstate.session); |
3314 | } | 3316 | } |
3315 | return 1; | 3317 | return 1; |