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>
.rpc_argp = dp,
.rpc_cred = clp->cl_cb_conn.cb_cred
};
.rpc_argp = dp,
.rpc_cred = clp->cl_cb_conn.cb_cred
};
status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFT);
status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFT);
+ while (dp->dl_retries--) {
switch (status) {
case -EIO:
/* Network partition? */
switch (status) {
case -EIO:
/* Network partition? */
u32 dl_ident;
stateid_t dl_stateid;
struct knfsd_fh dl_fh;
u32 dl_ident;
stateid_t dl_stateid;
struct knfsd_fh dl_fh;
};
/* client delegation callback info */
};
/* client delegation callback info */