提交 e0dba012 编写于 作者: T Trond Myklebust

NFSv4: Convert DELEGRETURN to use nfs4_handle_exception()

Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 b8b8d221
...@@ -5764,6 +5764,10 @@ struct nfs4_delegreturndata { ...@@ -5764,6 +5764,10 @@ struct nfs4_delegreturndata {
static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata) static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata)
{ {
struct nfs4_delegreturndata *data = calldata; struct nfs4_delegreturndata *data = calldata;
struct nfs4_exception exception = {
.inode = data->inode,
.stateid = &data->stateid,
};
if (!nfs4_sequence_done(task, &data->res.seq_res)) if (!nfs4_sequence_done(task, &data->res.seq_res))
return; return;
...@@ -5825,10 +5829,11 @@ static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata) ...@@ -5825,10 +5829,11 @@ static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata)
} }
/* Fallthrough */ /* Fallthrough */
default: default:
if (nfs4_async_handle_error(task, data->res.server, task->tk_status = nfs4_async_handle_exception(task,
NULL, NULL) == -EAGAIN) { data->res.server, task->tk_status,
&exception);
if (exception.retry)
goto out_restart; goto out_restart;
}
} }
data->rpc_status = task->tk_status; data->rpc_status = task->tk_status;
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册