commit | 9455e3f43b017f560daf4289d0fa295a33976f2a | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@primarydata.com> | Wed Mar 19 13:25:43 2014 -0400 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Wed Mar 19 17:19:42 2014 -0400 |
tree | 5f524a49dbcfd78a3f91a772ec5471f42340b542 | |
parent | 150e7260f309fd07e853c05f7fc55b7cccb4780d [diff] [blame] |
SUNRPC: Ensure call_status() deals correctly with SOFTCONN tasks Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index cea1308..ef96568 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c
@@ -2004,6 +2004,10 @@ case -EHOSTDOWN: case -EHOSTUNREACH: case -ENETUNREACH: + if (RPC_IS_SOFTCONN(task)) { + rpc_exit(task, status); + break; + } /* * Delay any retries for 3 seconds, then handle as if it * were a timeout.