mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
nfsd4: track recall retries in nfs4_delegation
Move this out of a local variable into the nfs4_delegation object in preparation for making this an async rpc call (at which point we'll need any state like this in a common object that's preserved across function calls). Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
6707bd3d42
commit
3aea09dc91
2 changed files with 3 additions and 2 deletions
|
@ -507,11 +507,11 @@ nfsd4_cb_recall(struct nfs4_delegation *dp)
|
||||||
.rpc_argp = dp,
|
.rpc_argp = dp,
|
||||||
.rpc_cred = clp->cl_cb_conn.cb_cred
|
.rpc_cred = clp->cl_cb_conn.cb_cred
|
||||||
};
|
};
|
||||||
int retries = 1;
|
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
|
dp->dl_retries = 1;
|
||||||
status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFT);
|
status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFT);
|
||||||
while (retries--) {
|
while (dp->dl_retries--) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case -EIO:
|
case -EIO:
|
||||||
/* Network partition? */
|
/* Network partition? */
|
||||||
|
|
|
@ -76,6 +76,7 @@ struct nfs4_delegation {
|
||||||
u32 dl_ident;
|
u32 dl_ident;
|
||||||
stateid_t dl_stateid;
|
stateid_t dl_stateid;
|
||||||
struct knfsd_fh dl_fh;
|
struct knfsd_fh dl_fh;
|
||||||
|
int dl_retries;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* client delegation callback info */
|
/* client delegation callback info */
|
||||||
|
|
Loading…
Reference in a new issue