Commit 6eef1c50 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] 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: default avatarAndy Adamson <andros@citi.umich.edu>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent af183028
......@@ -401,7 +401,7 @@ nfsd4_probe_callback(struct nfs4_client *clp)
/* 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;
......@@ -431,7 +431,7 @@ nfsd4_probe_callback(struct nfs4_client *clp)
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;
......@@ -530,6 +530,7 @@ nfs4_cb_recall_done(struct rpc_task *task)
return;
retry:
dprintk("NFSD: nfs4_cb_recall_done RETRY\n");
atomic_inc(&dp->dl_recall_cnt);
/* sleep 2 seconds before retrying recall */
set_current_state(TASK_UNINTERRUPTIBLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment