mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-26 15:54:18 +08:00
SUNRPC: SOFTCONN tasks should time out when on the sending list
SOFTCONN tasks need to periodically check if the transport is still connected, so that they can time out if that is not the case. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
f663507e29
commit
59464b262f
@ -283,7 +283,7 @@ out_unlock:
|
||||
xprt_clear_locked(xprt);
|
||||
out_sleep:
|
||||
task->tk_status = -EAGAIN;
|
||||
if (RPC_IS_SOFT(task))
|
||||
if (RPC_IS_SOFT(task) || RPC_IS_SOFTCONN(task))
|
||||
rpc_sleep_on_timeout(&xprt->sending, task, NULL,
|
||||
xprt_request_timeout(req));
|
||||
else
|
||||
@ -349,7 +349,7 @@ out_unlock:
|
||||
xprt_clear_locked(xprt);
|
||||
out_sleep:
|
||||
task->tk_status = -EAGAIN;
|
||||
if (RPC_IS_SOFT(task))
|
||||
if (RPC_IS_SOFT(task) || RPC_IS_SOFTCONN(task))
|
||||
rpc_sleep_on_timeout(&xprt->sending, task, NULL,
|
||||
xprt_request_timeout(req));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user