diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-03-22 22:44:19 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-04-09 15:08:55 +0200 |
commit | 3d74e6a5b6b0d1e4786d1596081bed6ab63a4cac (patch) | |
tree | 80751e19acc1febbb28252934385266ea8c234a2 /fs/nfsd/nfs4proc.c | |
parent | nfsd4: remove some redundant comments (diff) | |
download | linux-3d74e6a5b6b0d1e4786d1596081bed6ab63a4cac.tar.xz linux-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.c | 2 |
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) |