summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2013-03-22 17:44:19 -0400
committerJ. Bruce Fields <bfields@redhat.com>2013-04-09 09:08:55 -0400
commit3d74e6a5b6b0d1e4786d1596081bed6ab63a4cac (patch)
tree80751e19acc1febbb28252934385266ea8c234a2 /fs/nfsd/nfs4proc.c
parentc383747ef674467d02dd9c9320a47de2067b0ce3 (diff)
downloadlinux-stable-3d74e6a5b6b0d1e4786d1596081bed6ab63a4cac.tar.gz
linux-stable-3d74e6a5b6b0d1e4786d1596081bed6ab63a4cac.tar.bz2
linux-stable-3d74e6a5b6b0d1e4786d1596081bed6ab63a4cac.zip
nfsd4: no need for replay_owner in sessions case
The replay_owner will never be used in the sessions case. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 609e1e211330..c97bb424f55f 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -413,7 +413,7 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
WARN_ON(status && open->op_created);
out:
nfsd4_cleanup_open_state(open, status);
- if (open->op_openowner)
+ if (open->op_openowner && !nfsd4_has_session(cstate))
cstate->replay_owner = &open->op_openowner->oo_owner;
nfsd4_bump_seqid(cstate, status);
if (!cstate->replay_owner)