Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175988
b: refs/heads/master
c: f455848
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Labiaga authored and Trond Myklebust committed Dec 7, 2009
1 parent 9ae0f3b commit dd03b88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0110ee152b69f8cbde19d8bc1dd59e197e419d76
refs/heads/master: f455848a11cbbf15989609a46b24e81a6f13a08e
12 changes: 2 additions & 10 deletions trunk/fs/nfs/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,14 +1255,6 @@ void nfs41_handle_sequence_flag_errors(struct nfs_client *clp, u32 flags)
nfs_expire_all_delegations(clp);
}

static void nfs4_session_recovery_handle_error(struct nfs_client *clp, int err)
{
switch (err) {
case -NFS4ERR_STALE_CLIENTID:
set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state);
}
}

static int nfs4_reset_session(struct nfs_client *clp)
{
struct nfs4_session *ses = clp->cl_session;
Expand All @@ -1275,14 +1267,14 @@ static int nfs4_reset_session(struct nfs_client *clp)
status = nfs4_proc_destroy_session(clp->cl_session);
if (status && status != -NFS4ERR_BADSESSION &&
status != -NFS4ERR_DEADSESSION) {
nfs4_session_recovery_handle_error(clp, status);
status = nfs4_recovery_handle_error(clp, status);
goto out;
}

memset(clp->cl_session->sess_id.data, 0, NFS4_MAX_SESSIONID_LEN);
status = nfs4_proc_create_session(clp);
if (status)
nfs4_session_recovery_handle_error(clp, status);
status = nfs4_recovery_handle_error(clp, status);

out:
/*
Expand Down

0 comments on commit dd03b88

Please sign in to comment.