aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2009-04-01 09:22:41 -0400
committerBenny Halevy <bhalevy@panasas.com>2009-06-17 15:25:07 -0400
commiteedc020e718b8ce45381383ec66030f09eb02a1e (patch)
treef29fe9309b67be4d5387c2ced72c063fb4df53c0 /fs/nfs/nfs4proc.c
parentaae2006e9b0c294114915c13022fa348e1a88023 (diff)
nfs41: use rpc prepare call state for session reset
[nfs41: change nfs4_restart_rpc argument] [nfs41: check for session not minorversion] [nfs41: trigger the state manager for session reset] Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> [always define nfs4_restart_rpc] Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 7fc0c9c8f5e3..2d45606a8085 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1661,7 +1661,7 @@ static void nfs4_close_done(struct rpc_task *task, void *data)
1661 break; 1661 break;
1662 default: 1662 default:
1663 if (nfs4_async_handle_error(task, server, state) == -EAGAIN) { 1663 if (nfs4_async_handle_error(task, server, state) == -EAGAIN) {
1664 rpc_restart_call(task); 1664 nfs4_restart_rpc(task, server->nfs_client);
1665 return; 1665 return;
1666 } 1666 }
1667 } 1667 }
@@ -2874,7 +2874,7 @@ static int nfs4_read_done(struct rpc_task *task, struct nfs_read_data *data)
2874 nfs4_sequence_done(server, &data->res.seq_res, task->tk_status); 2874 nfs4_sequence_done(server, &data->res.seq_res, task->tk_status);
2875 2875
2876 if (nfs4_async_handle_error(task, server, data->args.context->state) == -EAGAIN) { 2876 if (nfs4_async_handle_error(task, server, data->args.context->state) == -EAGAIN) {
2877 rpc_restart_call(task); 2877 nfs4_restart_rpc(task, server->nfs_client);
2878 return -EAGAIN; 2878 return -EAGAIN;
2879 } 2879 }
2880 2880
@@ -2899,7 +2899,7 @@ static int nfs4_write_done(struct rpc_task *task, struct nfs_write_data *data)
2899 task->tk_status); 2899 task->tk_status);
2900 2900
2901 if (nfs4_async_handle_error(task, NFS_SERVER(inode), data->args.context->state) == -EAGAIN) { 2901 if (nfs4_async_handle_error(task, NFS_SERVER(inode), data->args.context->state) == -EAGAIN) {
2902 rpc_restart_call(task); 2902 nfs4_restart_rpc(task, NFS_SERVER(inode)->nfs_client);
2903 return -EAGAIN; 2903 return -EAGAIN;
2904 } 2904 }
2905 if (task->tk_status >= 0) { 2905 if (task->tk_status >= 0) {
@@ -2927,7 +2927,7 @@ static int nfs4_commit_done(struct rpc_task *task, struct nfs_write_data *data)
2927 nfs4_sequence_done(NFS_SERVER(inode), &data->res.seq_res, 2927 nfs4_sequence_done(NFS_SERVER(inode), &data->res.seq_res,
2928 task->tk_status); 2928 task->tk_status);
2929 if (nfs4_async_handle_error(task, NFS_SERVER(inode), NULL) == -EAGAIN) { 2929 if (nfs4_async_handle_error(task, NFS_SERVER(inode), NULL) == -EAGAIN) {
2930 rpc_restart_call(task); 2930 nfs4_restart_rpc(task, NFS_SERVER(inode)->nfs_client);
2931 return -EAGAIN; 2931 return -EAGAIN;
2932 } 2932 }
2933 nfs4_sequence_free_slot(NFS_SERVER(inode)->nfs_client, 2933 nfs4_sequence_free_slot(NFS_SERVER(inode)->nfs_client,
@@ -3628,7 +3628,8 @@ static void nfs4_locku_done(struct rpc_task *task, void *data)
3628 break; 3628 break;
3629 default: 3629 default:
3630 if (nfs4_async_handle_error(task, calldata->server, NULL) == -EAGAIN) 3630 if (nfs4_async_handle_error(task, calldata->server, NULL) == -EAGAIN)
3631 rpc_restart_call(task); 3631 nfs4_restart_rpc(task,
3632 calldata->server->nfs_client);
3632 } 3633 }
3633 nfs4_sequence_free_slot(calldata->server->nfs_client, 3634 nfs4_sequence_free_slot(calldata->server->nfs_client,
3634 &calldata->res.seq_res); 3635 &calldata->res.seq_res);
@@ -4237,7 +4238,7 @@ static void nfs4_get_lease_time_done(struct rpc_task *task, void *calldata)
4237 dprintk("%s Retry: tk_status %d\n", __func__, task->tk_status); 4238 dprintk("%s Retry: tk_status %d\n", __func__, task->tk_status);
4238 rpc_delay(task, NFS4_POLL_RETRY_MIN); 4239 rpc_delay(task, NFS4_POLL_RETRY_MIN);
4239 task->tk_status = 0; 4240 task->tk_status = 0;
4240 rpc_restart_call(task); 4241 nfs4_restart_rpc(task, data->clp);
4241 return; 4242 return;
4242 } 4243 }
4243 nfs41_sequence_free_slot(data->clp, &data->res->lr_seq_res); 4244 nfs41_sequence_free_slot(data->clp, &data->res->lr_seq_res);
@@ -4647,7 +4648,7 @@ void nfs41_sequence_call_done(struct rpc_task *task, void *data)
4647 4648
4648 if (_nfs4_async_handle_error(task, NULL, clp, NULL) 4649 if (_nfs4_async_handle_error(task, NULL, clp, NULL)
4649 == -EAGAIN) { 4650 == -EAGAIN) {
4650 rpc_restart_call(task); 4651 nfs4_restart_rpc(task, clp);
4651 return; 4652 return;
4652 } 4653 }
4653 } 4654 }