aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-12-13 19:05:46 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-12-21 11:51:24 -0500
commit611c96c8f728c4bcdbadaa2387942d3c0641cadf (patch)
tree962deb2f6fd1ba4dcae2c27a1157c46b4fc45476 /fs
parent72895b1ac7baeda76835cddb3edb019a90d32bcb (diff)
nfs4: fix units bug causing hang on recovery
Note that cl_lease_time is in jiffies. This can cause a very long wait in the NFS4ERR_CLID_INUSE case. Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 4435e5e1f904..494c68739ff4 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3517,7 +3517,7 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program,
3517 if (signalled()) 3517 if (signalled())
3518 break; 3518 break;
3519 if (loop++ & 1) 3519 if (loop++ & 1)
3520 ssleep(clp->cl_lease_time + 1); 3520 ssleep(clp->cl_lease_time / HZ + 1);
3521 else 3521 else
3522 if (++clp->cl_id_uniquifier == 0) 3522 if (++clp->cl_id_uniquifier == 0)
3523 break; 3523 break;