diff mbox

nfs4: fix units bug causing hang on recovery

Message ID 20101214000546.GF9394@fieldses.org
State Accepted, archived
Delegated to: Trond Myklebust
Headers show

Commit Message

J. Bruce Fields Dec. 14, 2010, 12:05 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 6a653ff..2123759 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3508,7 +3508,7 @@  int nfs4_proc_setclientid(struct nfs_client *clp, u32 program,
 		if (signalled())
 			break;
 		if (loop++ & 1)
-			ssleep(clp->cl_lease_time + 1);
+			ssleep(clp->cl_lease_time / HZ + 1);
 		else
 			if (++clp->cl_id_uniquifier == 0)
 				break;