Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39985
b: refs/heads/master
c: 71bdcf8
h: refs/heads/master
i:
  39983: 9ea56d8
v: v3
  • Loading branch information
Chuck Lever authored and Linus Torvalds committed Oct 20, 2006
1 parent b83b399 commit b4f7c68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b87c0adfeaaf8d8310c4f790d76072a5961b3518
refs/heads/master: 71bdcf8056f910dc57ea3d0def80a9329e7dc52d
14 changes: 7 additions & 7 deletions trunk/net/sunrpc/pmap_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ void rpc_getport(struct rpc_task *task)
/* Autobind on cloned rpc clients is discouraged */
BUG_ON(clnt->cl_parent != clnt);

if (xprt_test_and_set_binding(xprt)) {
task->tk_status = -EACCES; /* tell caller to check again */
rpc_sleep_on(&xprt->binding, task, NULL, NULL);
return;
}
/* Put self on queue before sending rpcbind request, in case
* pmap_getport_done completes before we return from rpc_run_task */
rpc_sleep_on(&xprt->binding, task, NULL, NULL);

status = -EACCES; /* tell caller to check again */
if (xprt_test_and_set_binding(xprt))
goto bailout_nofree;

/* Someone else may have bound if we slept */
status = 0;
Expand Down Expand Up @@ -134,8 +136,6 @@ void rpc_getport(struct rpc_task *task)
goto bailout;
rpc_release_task(child);

rpc_sleep_on(&xprt->binding, task, NULL, NULL);

task->tk_xprt->stat.bind_count++;
return;

Expand Down

0 comments on commit b4f7c68

Please sign in to comment.