mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Revert "SUNRPC: Remove unreachable error condition"
This reverts commitefe57fd58e
. The assumption that it is impossible to return an ERR pointer from rpc_run_task() no longer holds due to commit25cf32ad5d
("SUNRPC: Handle allocation failure in rpc_new_task()"). Fixes:25cf32ad5d
('SUNRPC: Handle allocation failure in rpc_new_task()') Fixes:efe57fd58e
('SUNRPC: Remove unreachable error condition') Signed-off-by: Dan Aloni <dan.aloni@vastdata.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
d7a5118635
commit
13bd901418
1 changed files with 3 additions and 0 deletions
|
@ -2873,6 +2873,9 @@ int rpc_clnt_test_and_add_xprt(struct rpc_clnt *clnt,
|
|||
|
||||
task = rpc_call_null_helper(clnt, xprt, NULL, RPC_TASK_ASYNC,
|
||||
&rpc_cb_add_xprt_call_ops, data);
|
||||
if (IS_ERR(task))
|
||||
return PTR_ERR(task);
|
||||
|
||||
data->xps->xps_nunique_destaddr_xprts++;
|
||||
rpc_put_task(task);
|
||||
success:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue