diff options
author | Andy Adamson <andros@netapp.com> | 2009-04-01 09:22:25 -0400 |
---|---|---|
committer | Benny Halevy <bhalevy@panasas.com> | 2009-06-17 13:46:48 -0400 |
commit | f11c88af26453aee2823a1fd9120d0cd8dae7b9a (patch) | |
tree | 2a914fad3197bb9c28477e7a6224489acc11ae5d /fs/nfs/nfs4proc.c | |
parent | 472cfbd9b97be210a9b61ac1c6a774cd456ea9d2 (diff) |
nfs41: read sequence setup/done support
Implement the read rpc_call_prepare method for
asynchronuos nfs rpcs, call nfs41_setup_sequence from
respective rpc_call_validate_args methods.
Call nfs4_sequence_done from respective rpc_call_done methods.
Note that we need to pass a pointer to the nfs_server in calls data
for passing on to nfs4_sequence_done.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[pnfs: client data server write validate and release]
Signed-off-by: Andy Adamson <andros@umich.edu>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[move the nfs4_sequence_free_slot call in nfs_readpage_retry from]
[nfs41: separate free slot from sequence done]
[remove nfs_readargs.nfs_server, use calldata->inode instead]
Signed-off-by: Andy Adamson <andros@umich.edu>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfs41: Support sessions with O_DIRECT]
Signed-off-by: Dean Hildebrand <dhildeb@us.ibm.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfs41: nfs4_sequence_free_slot use nfs_client for data server]
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 97521e47e437..6c0ac539d9c7 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -2864,6 +2864,11 @@ static int nfs4_read_done(struct rpc_task *task, struct nfs_read_data *data) | |||
2864 | { | 2864 | { |
2865 | struct nfs_server *server = NFS_SERVER(data->inode); | 2865 | struct nfs_server *server = NFS_SERVER(data->inode); |
2866 | 2866 | ||
2867 | dprintk("--> %s\n", __func__); | ||
2868 | |||
2869 | /* nfs4_sequence_free_slot called in the read rpc_call_done */ | ||
2870 | nfs4_sequence_done(server, &data->res.seq_res, task->tk_status); | ||
2871 | |||
2867 | if (nfs4_async_handle_error(task, server, data->args.context->state) == -EAGAIN) { | 2872 | if (nfs4_async_handle_error(task, server, data->args.context->state) == -EAGAIN) { |
2868 | rpc_restart_call(task); | 2873 | rpc_restart_call(task); |
2869 | return -EAGAIN; | 2874 | return -EAGAIN; |