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/internal.h | |
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/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 12f4c5e6fd39..988c8b9aa78b 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -206,6 +206,9 @@ extern int nfs4_path_walk(struct nfs_server *server, | |||
206 | const char *path); | 206 | const char *path); |
207 | #endif | 207 | #endif |
208 | 208 | ||
209 | /* read.c */ | ||
210 | extern void nfs_read_prepare(struct rpc_task *task, void *calldata); | ||
211 | |||
209 | /* nfs4proc.c */ | 212 | /* nfs4proc.c */ |
210 | extern int _nfs4_call_sync(struct nfs_server *server, | 213 | extern int _nfs4_call_sync(struct nfs_server *server, |
211 | struct rpc_message *msg, | 214 | struct rpc_message *msg, |