aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c6
-rw-r--r--net/sunrpc/rpcb_clnt.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 7a7cd3b7acce..e53d71827132 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -950,6 +950,12 @@ call_bind_status(struct rpc_task *task)
950 } 950 }
951 951
952 switch (task->tk_status) { 952 switch (task->tk_status) {
953 case -EAGAIN:
954 dprintk("RPC: %5u rpcbind waiting for another request "
955 "to finish\n", task->tk_pid);
956 /* avoid busy-waiting here -- could be a network outage. */
957 rpc_delay(task, 5*HZ);
958 goto retry_timeout;
953 case -EACCES: 959 case -EACCES:
954 dprintk("RPC: %5u remote rpcbind: RPC program/version " 960 dprintk("RPC: %5u remote rpcbind: RPC program/version "
955 "unavailable\n", task->tk_pid); 961 "unavailable\n", task->tk_pid);
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index a0c9f6905517..9b06a217ab86 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -341,7 +341,7 @@ void rpcb_getport_async(struct rpc_task *task)
341 BUG_ON(clnt->cl_parent != clnt); 341 BUG_ON(clnt->cl_parent != clnt);
342 342
343 if (xprt_test_and_set_binding(xprt)) { 343 if (xprt_test_and_set_binding(xprt)) {
344 status = -EACCES; /* tell caller to check again */ 344 status = -EAGAIN; /* tell caller to check again */
345 dprintk("RPC: %5u %s: waiting for another binder\n", 345 dprintk("RPC: %5u %s: waiting for another binder\n",
346 task->tk_pid, __FUNCTION__); 346 task->tk_pid, __FUNCTION__);
347 goto bailout_nowake; 347 goto bailout_nowake;