diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2015-10-02 13:14:37 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-10-02 15:43:07 -0400 |
commit | 5e99b532bb95f8e6bf39f4500f0caef070bac16d (patch) | |
tree | d4b2f5cd9eb4343b2777dee47e2c71a144b6cb22 /net/sunrpc/xprtrdma/fmr_ops.c | |
parent | e92c1e0d40c50472f80820bd829645ce9fefd6c1 (diff) |
nfs4: reset states to use open_stateid when returning delegation voluntarily
When the client goes to return a delegation, it should always update any
nfs4_state currently set up to use that delegation stateid to instead
use the open stateid. It already does do this in some cases,
particularly in the state recovery code, but not currently when the
delegation is voluntarily returned (e.g. in advance of a RENAME). This
causes the client to try to continue using the delegation stateid after
the DELEGRETURN, e.g. in LAYOUTGET.
Set the nfs4_state back to using the open stateid in
nfs4_open_delegation_recall, just before clearing the
NFS_DELEGATED_STATE bit.
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/fmr_ops.c')
0 files changed, 0 insertions, 0 deletions