Commit 9d82819d authored by Trond Myklebust's avatar Trond Myklebust

SUNRPC: Handle low memory situations in call_status()

We need to handle ENFILE, ENOBUFS, and ENOMEM, because
xprt_wake_pending_tasks() can be called with any one of these due to
socket creation failures.

Fixes: b61d59ff ("SUNRPC: xs_tcp_connect_worker{4,6}: merge common code")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent d3c15033
...@@ -2367,6 +2367,11 @@ call_status(struct rpc_task *task) ...@@ -2367,6 +2367,11 @@ call_status(struct rpc_task *task)
case -EPIPE: case -EPIPE:
case -EAGAIN: case -EAGAIN:
break; break;
case -ENFILE:
case -ENOBUFS:
case -ENOMEM:
rpc_delay(task, HZ>>2);
break;
case -EIO: case -EIO:
/* shutdown or soft timeout */ /* shutdown or soft timeout */
goto out_exit; goto out_exit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment