Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea635a51 authored by Chuck Lever's avatar Chuck Lever Committed by Trond Myklebust
Browse files

SUNRPC: Retry rpcbind requests if the server's portmapper isn't up



 After a server crash/reboot, rebinding should always retry, otherwise
 requests on "hard" mounts will fail when they shouldn't.

 Test plan:
 Run a lock-intensive workload against a server while rebooting the server
 repeatedly.

 Signed-off-by: default avatarChuck Lever <cel@netapp.com>
 Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent cff6bf97
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -759,7 +759,8 @@ call_bind_status(struct rpc_task *task)
	case -EACCES:
		dprintk("RPC: %4d remote rpcbind: RPC program/version unavailable\n",
				task->tk_pid);
		break;
		rpc_delay(task, 3*HZ);
		goto retry_bind;
	case -ETIMEDOUT:
		dprintk("RPC: %4d rpcbind request timed out\n",
				task->tk_pid);