提交 dbd65a7e 编写于 作者: B Benny Halevy 提交者: J. Bruce Fields

nfsd4: use local variable in nfs4svc_encode_compoundres

'cs' is already computed, re-use it.
Signed-off-by: NBenny Halevy <bhalevy@panasas.com>
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 fb4b698f
......@@ -3310,9 +3310,9 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo
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;
cs->slot->sl_inuse = false;
}
nfsd4_put_session(resp->cstate.session);
nfsd4_put_session(cs->session);
}
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册