[pnfs] [PATCH] no putrootfh or getattr to DS

Marc Eshel eshel at almaden.ibm.com
Sun Jul 29 15:04:31 EDT 2007


From: Marc Eshel <eshel at almaden.ibm.com>

Remove get_lease_time call when setting client for DS connection.
This call was doing PUTROOTFH + GETATTR to the DS which is not allowed.
---

 fs/nfs/nfs4proc.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 0a568a4..e60c958 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5739,11 +5739,14 @@ int nfs41_proc_setup_session(struct nfs4
 	clp->cl_session->expired = 0;
 	clp->cl_session->client = clp;
 
+	if (clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_DS)
+		goto out;
+
 	status = nfs4_proc_get_lease_time(clp, &fsinfo);
 
-	if (status) 
+	if (status)
 		goto out_free;
-	
+
 	/* Update lease time and schedule renewal */
 	spin_lock(&clp->cl_lock);
 	clp->cl_lease_time = fsinfo.lease_time * HZ;


More information about the pNFS mailing list