summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/nfs4callback.c4
-rw-r--r--include/linux/nfsd/state.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 0420b5e6e20..b88b207d75d 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -507,11 +507,11 @@ nfsd4_cb_recall(struct nfs4_delegation *dp)
.rpc_argp = dp,
.rpc_cred = clp->cl_cb_conn.cb_cred
};
- int retries = 1;
int status = 0;
+ dp->dl_retries = 1;
status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFT);
- while (retries--) {
+ while (dp->dl_retries--) {
switch (status) {
case -EIO:
/* Network partition? */
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h
index 346b603072c..c0c49215ddc 100644
--- a/include/linux/nfsd/state.h
+++ b/include/linux/nfsd/state.h
@@ -76,6 +76,7 @@ struct nfs4_delegation {
u32 dl_ident;
stateid_t dl_stateid;
struct knfsd_fh dl_fh;
+ int dl_retries;
};
/* client delegation callback info */