[pnfs] [PATCH 10/14] 2.6-latest pnfs client filelayout update rpc_call_ops

andros at umich.edu andros at umich.edu
Mon Nov 12 14:29:22 EST 2007


From: Andy Adamson <andros at umich.edu>

Add session enabled rpc_call_validate and rpc_release
to the filelayout rpc_call_ops

Signed-off by: Andy Adamson<andros at umich.edu>
---
 fs/nfs/nfs4filelayout.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c
index 93ba961..395c1eb 100644
--- a/fs/nfs/nfs4filelayout.c
+++ b/fs/nfs/nfs4filelayout.c
@@ -239,11 +239,15 @@ static void filelayout_write_call_done(struct rpc_task *task, void *data)
 }
 
 struct rpc_call_ops filelayout_read_call_ops = {
+	.rpc_call_validate_args = nfs_read_validate,
 	.rpc_call_done = filelayout_read_call_done,
+	.rpc_release = nfs_readdata_release,
 };
 
 struct rpc_call_ops filelayout_write_call_ops = {
+	.rpc_call_validate_args = nfs_read_validate,
 	.rpc_call_done = filelayout_write_call_done,
+	.rpc_release = nfs_readdata_release,
 };
 
 /* Perform sync or async reads.
-- 
1.5.0.2



More information about the pNFS mailing list