Merge branch 'bugfixes'

This commit is contained in:
Trond Myklebust 2017-08-20 13:04:12 -04:00
commit 7af7a5963c
7 changed files with 70 additions and 45 deletions

View file

@ -1903,6 +1903,14 @@ call_connect_status(struct rpc_task *task)
task->tk_status = 0;
switch (status) {
case -ECONNREFUSED:
/* A positive refusal suggests a rebind is needed. */
if (RPC_IS_SOFTCONN(task))
break;
if (clnt->cl_autobind) {
rpc_force_rebind(clnt);
task->tk_action = call_bind;
return;
}
case -ECONNRESET:
case -ECONNABORTED:
case -ENETUNREACH: