Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2795
b: refs/heads/master
c: ae38846
h: refs/heads/master
i:
  2793: 1fcdcbd
  2791: 3454994
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Jun 22, 2005
1 parent 52bdf74 commit 53ae0a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 20e5ac828dfd23b9080159c62a34f32d2dcd92fc
refs/heads/master: ae3884621bf5b4caff7785b9a417f262202965b2
9 changes: 8 additions & 1 deletion trunk/net/sunrpc/xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,11 @@ void xprt_connect(struct rpc_task *task)
if (xprt->sock != NULL)
schedule_delayed_work(&xprt->sock_connect,
RPC_REESTABLISH_TIMEOUT);
else
else {
schedule_work(&xprt->sock_connect);
if (!RPC_IS_ASYNC(task))
flush_scheduled_work();
}
}
return;
out_write:
Expand Down Expand Up @@ -1685,6 +1688,10 @@ xprt_shutdown(struct rpc_xprt *xprt)
rpc_wake_up(&xprt->backlog);
wake_up(&xprt->cong_wait);
del_timer_sync(&xprt->timer);

/* synchronously wait for connect worker to finish */
cancel_delayed_work(&xprt->sock_connect);
flush_scheduled_work();
}

/*
Expand Down

0 comments on commit 53ae0a9

Please sign in to comment.