Commit d3c15033 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Handle ENOMEM in call_transmit_status()



Both call_transmit() and call_bc_transmit() can now return ENOMEM, so
let's make sure that we handle the errors gracefully.

Fixes: 0472e476 ("SUNRPC: Convert socket page send code to use iov_iter()")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent dcc7977c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2200,6 +2200,7 @@ call_transmit_status(struct rpc_task *task)
		 * socket just returned a connection error,
		 * then hold onto the transport lock.
		 */
	case -ENOMEM:
	case -ENOBUFS:
		rpc_delay(task, HZ>>2);
		fallthrough;
@@ -2283,6 +2284,7 @@ call_bc_transmit_status(struct rpc_task *task)
	case -ENOTCONN:
	case -EPIPE:
		break;
	case -ENOMEM:
	case -ENOBUFS:
		rpc_delay(task, HZ>>2);
		fallthrough;