diff options
| author | Andy Adamson <andros@netapp.com> | 2009-12-04 15:55:05 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-12-04 15:55:05 -0500 |
| commit | 6df08189ffd33d8357759561dba49d25c0335858 (patch) | |
| tree | 8f1d38370002cb05534628ee7b6bbfd04242b715 /fs/nfs/nfs4state.c | |
| parent | 4d643d1dfa9349164fe928e255f68020d91dbfe0 (diff) | |
nfs41: rename cl_state session SETUP bit to RESET
The bit is no longer used for session setup, only for session reset.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
| -rw-r--r-- | fs/nfs/nfs4state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 967fc76a2463..902d8749bde4 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
| @@ -1092,7 +1092,7 @@ static int nfs4_recovery_handle_error(struct nfs_client *clp, int error) | |||
| 1092 | case -NFS4ERR_CONN_NOT_BOUND_TO_SESSION: | 1092 | case -NFS4ERR_CONN_NOT_BOUND_TO_SESSION: |
| 1093 | case -NFS4ERR_SEQ_FALSE_RETRY: | 1093 | case -NFS4ERR_SEQ_FALSE_RETRY: |
| 1094 | case -NFS4ERR_SEQ_MISORDERED: | 1094 | case -NFS4ERR_SEQ_MISORDERED: |
| 1095 | set_bit(NFS4CLNT_SESSION_SETUP, &clp->cl_state); | 1095 | set_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state); |
| 1096 | } | 1096 | } |
| 1097 | return error; | 1097 | return error; |
| 1098 | } | 1098 | } |
| @@ -1256,7 +1256,7 @@ static void nfs4_state_manager(struct nfs_client *clp) | |||
| 1256 | } | 1256 | } |
| 1257 | 1257 | ||
| 1258 | /* Initialize or reset the session */ | 1258 | /* Initialize or reset the session */ |
| 1259 | if (test_and_clear_bit(NFS4CLNT_SESSION_SETUP, &clp->cl_state) | 1259 | if (test_and_clear_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state) |
| 1260 | && nfs4_has_session(clp)) { | 1260 | && nfs4_has_session(clp)) { |
| 1261 | status = nfs4_reset_session(clp); | 1261 | status = nfs4_reset_session(clp); |
| 1262 | if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) | 1262 | if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) |
| @@ -1270,7 +1270,7 @@ static void nfs4_state_manager(struct nfs_client *clp) | |||
| 1270 | status = nfs4_do_reclaim(clp, | 1270 | status = nfs4_do_reclaim(clp, |
| 1271 | nfs4_reboot_recovery_ops[clp->cl_minorversion]); | 1271 | nfs4_reboot_recovery_ops[clp->cl_minorversion]); |
| 1272 | if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) || | 1272 | if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) || |
| 1273 | test_bit(NFS4CLNT_SESSION_SETUP, &clp->cl_state)) | 1273 | test_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state)) |
| 1274 | continue; | 1274 | continue; |
| 1275 | nfs4_state_end_reclaim_reboot(clp); | 1275 | nfs4_state_end_reclaim_reboot(clp); |
| 1276 | if (test_bit(NFS4CLNT_RECLAIM_NOGRACE, &clp->cl_state)) | 1276 | if (test_bit(NFS4CLNT_RECLAIM_NOGRACE, &clp->cl_state)) |
| @@ -1284,7 +1284,7 @@ static void nfs4_state_manager(struct nfs_client *clp) | |||
| 1284 | status = nfs4_do_reclaim(clp, | 1284 | status = nfs4_do_reclaim(clp, |
| 1285 | nfs4_nograce_recovery_ops[clp->cl_minorversion]); | 1285 | nfs4_nograce_recovery_ops[clp->cl_minorversion]); |
| 1286 | if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) || | 1286 | if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) || |
| 1287 | test_bit(NFS4CLNT_SESSION_SETUP, &clp->cl_state) || | 1287 | test_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state) || |
| 1288 | test_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state)) | 1288 | test_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state)) |
| 1289 | continue; | 1289 | continue; |
| 1290 | if (status < 0) | 1290 | if (status < 0) |
