[pnfs] [PATCH 05/10] pnfsd: layoutreturn stateid processing

andros at netapp.com andros at netapp.com
Wed May 7 16:53:40 EDT 2008


From: Andy Adamson <andros at umich.edu>

Signed-off-by: Andy Adamson<andros at netapp.com>
---
 fs/nfsd/nfs4state.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index e04b8c0..bc0d69b 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4833,6 +4833,12 @@ int nfs4_pnfs_return_layout(struct super_block *sb, struct svc_fh *current_fh,
 	if (!fp)
 		goto out;
 
+	/* Check the stateid */
+	dprintk("%s PROCESS LO_STATEID inode %p\n", __func__, ino);
+	status = nfs4_process_layout_stateid(clp, fp, &lrp->lr_sid, NULL);
+	if (status)
+		goto out;
+
 	/* update layouts */
 	layouts_found += lrp->lr_return_type == RETURN_FILE ?
 		pnfs_return_file_layouts(clp, fp, lrp) :
-- 
1.5.4.1



More information about the pNFS mailing list