mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
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: b61d59fffd
("SUNRPC: xs_tcp_connect_worker{4,6}: merge common code")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
d3c15033b2
commit
9d82819d5b
@ -2367,6 +2367,11 @@ call_status(struct rpc_task *task)
|
||||
case -EPIPE:
|
||||
case -EAGAIN:
|
||||
break;
|
||||
case -ENFILE:
|
||||
case -ENOBUFS:
|
||||
case -ENOMEM:
|
||||
rpc_delay(task, HZ>>2);
|
||||
break;
|
||||
case -EIO:
|
||||
/* shutdown or soft timeout */
|
||||
goto out_exit;
|
||||
|
Loading…
Reference in New Issue
Block a user