2005-03-08 06:07:18

by NeilBrown

[permalink] [raw]
Subject: [PATCH kNFSd 17 of 54] nfsd4: do callback replays by hand


Turn off rpc layer timeout replay for the NFSv4 server callback client.
Rely on manual replay in nfs4_cb_recall_done instead.

Signed-off-by: Andy Adamson <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Signed-off-by: Neil Brown <[email protected]>

### Diffstat output
./fs/nfsd/nfs4callback.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff ./fs/nfsd/nfs4callback.c~current~ ./fs/nfsd/nfs4callback.c
--- ./fs/nfsd/nfs4callback.c~current~ 2005-03-07 11:35:09.000000000 +1100
+++ ./fs/nfsd/nfs4callback.c 2005-03-07 11:35:49.000000000 +1100
@@ -402,7 +402,7 @@ nfsd4_probe_callback(struct nfs4_client

/* Initialize timeout */
timeparms.to_initval = (NFSD_LEASE_TIME/4) * HZ;
- timeparms.to_retries = 5;
+ timeparms.to_retries = 0;
timeparms.to_maxval = (NFSD_LEASE_TIME/2) * HZ;
timeparms.to_exponential = 1;

@@ -432,7 +432,7 @@ nfsd4_probe_callback(struct nfs4_client
dprintk("NFSD: couldn't create callback client\n");
goto out_xprt;
}
- clnt->cl_intr = 1;
+ clnt->cl_intr = 0;
clnt->cl_softrtry = 1;
clnt->cl_chatty = 1;

@@ -531,6 +531,7 @@ out:
return;

retry:
+ dprintk("NFSD: nfs4_cb_recall_done RETRY\n");
atomic_inc(&dp->dl_recall_cnt);
/* sleep 2 seconds before retrying recall */
ssleep(2);


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs