nfs4: fix units bug causing hang on recovery
Subsystems (2)
PATCH 1/1 nfs4: fix units bug causing hang on recovery
From: J. Bruce Fields <[email protected]>
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 <[email protected]>
--- fs/nfs/nfs4proc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfs/nfs4proc.c +1 -1
@@ -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 ;
Signature · 1 line
1.7.1