Skip to content

Commit d3c1503

Browse files
author
Trond Myklebust
committed
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: 0472e47 ("SUNRPC: Convert socket page send code to use iov_iter()") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent dcc7977 commit d3c1503

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/sunrpc/clnt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,6 +2200,7 @@ call_transmit_status(struct rpc_task *task)
22002200
* socket just returned a connection error,
22012201
* then hold onto the transport lock.
22022202
*/
2203+
case -ENOMEM:
22032204
case -ENOBUFS:
22042205
rpc_delay(task, HZ>>2);
22052206
fallthrough;
@@ -2283,6 +2284,7 @@ call_bc_transmit_status(struct rpc_task *task)
22832284
case -ENOTCONN:
22842285
case -EPIPE:
22852286
break;
2287+
case -ENOMEM:
22862288
case -ENOBUFS:
22872289
rpc_delay(task, HZ>>2);
22882290
fallthrough;

0 commit comments

Comments
 (0)