diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-09-16 17:42:48 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-09-17 10:01:54 -0400 |
commit | 38c387b52d8404f8fd29d8c26bebc83a80733657 (patch) | |
tree | 41879d4c05ef03368856439f232df7ac1fcc2b0b /fs/nfsd/nfs4xdr.c | |
parent | dad1c067eb42ec8bedadd64f681056914547d22e (diff) |
nfsd4: match close replays on stateid, not open owner id
Keep around an unhashed copy of the final stateid after the last close
using an openowner, and when identifying a replay, match against that
stateid instead of just against the open owner id. Free it the next
time the seqid is bumped or the stateowner is destroyed.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index f4116cf16595..7bd57c2dbc4d 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -1636,6 +1636,7 @@ static void encode_seqid_op_tail(struct nfsd4_compoundres *resp, __be32 *save, _ | |||
1636 | (char *)resp->p - (char *)save; | 1636 | (char *)resp->p - (char *)save; |
1637 | memcpy(stateowner->so_replay.rp_buf, save, | 1637 | memcpy(stateowner->so_replay.rp_buf, save, |
1638 | stateowner->so_replay.rp_buflen); | 1638 | stateowner->so_replay.rp_buflen); |
1639 | nfsd4_purge_closed_stateid(stateowner); | ||
1639 | } | 1640 | } |
1640 | } | 1641 | } |
1641 | 1642 | ||