Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
net/sunrpc/xprt.c
··· 283 283 xprt_clear_locked(xprt); 284 284 out_sleep: 285 285 task->tk_status = -EAGAIN; 286 - if (RPC_IS_SOFT(task)) 286 + if (RPC_IS_SOFT(task) || RPC_IS_SOFTCONN(task)) 287 287 rpc_sleep_on_timeout(&xprt->sending, task, NULL, 288 288 xprt_request_timeout(req)); 289 289 else ··· 349 349 xprt_clear_locked(xprt); 350 350 out_sleep: 351 351 task->tk_status = -EAGAIN; 352 - if (RPC_IS_SOFT(task)) 352 + if (RPC_IS_SOFT(task) || RPC_IS_SOFTCONN(task)) 353 353 rpc_sleep_on_timeout(&xprt->sending, task, NULL, 354 354 xprt_request_timeout(req)); 355 355 else