|
@@ -3306,10 +3306,12 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo
|
|
|
iov = &rqstp->rq_res.head[0];
|
|
|
iov->iov_len = ((char*)resp->p) - (char*)iov->iov_base;
|
|
|
BUG_ON(iov->iov_len > PAGE_SIZE);
|
|
|
- if (nfsd4_has_session(cs) && cs->status != nfserr_replay_cache) {
|
|
|
- nfsd4_store_cache_entry(resp);
|
|
|
- dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__);
|
|
|
- resp->cstate.slot->sl_inuse = false;
|
|
|
+ if (nfsd4_has_session(cs)) {
|
|
|
+ if (cs->status != nfserr_replay_cache) {
|
|
|
+ nfsd4_store_cache_entry(resp);
|
|
|
+ dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__);
|
|
|
+ resp->cstate.slot->sl_inuse = false;
|
|
|
+ }
|
|
|
nfsd4_put_session(resp->cstate.session);
|
|
|
}
|
|
|
return 1;
|