[5/6] SUNRPC: Handle the SYSTEM_ERR rpc error
diff mbox series

Message ID 20190315175141.68792-5-trond.myklebust@hammerspace.com
State New
Headers show
Series
  • [1/6] SUNRPC: Fix a client regression when handling oversized replies
Related show

Commit Message

Trond Myklebust March 15, 2019, 5:51 p.m. UTC
Handle the SYSTEM_ERR rpc error by retrying the RPC call as if it
were a garbage argument.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
---
 net/sunrpc/clnt.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 1f47801e0002..cb73d6c25857 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -2497,6 +2497,7 @@  rpc_decode_header(struct rpc_task *task, struct xdr_stream *xdr)
 		error = -EOPNOTSUPP;
 		goto out_err;
 	case rpc_garbage_args:
+	case rpc_system_err:
 		trace_rpc__garbage_args(task);
 		error = -EIO;
 		break;