mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] RPC: get rid of xprt->stream
Now we can fix up the last few places that use the "xprt->stream" variable, and get rid of it from the rpc_xprt structure. Test-plan: Destructive testing (unplugging the network temporarily). Connectathon with UDP and TCP. Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
808012fbb2
commit
43118c29de
4 changed files with 21 additions and 16 deletions
|
|
@ -173,11 +173,10 @@ nlm_bind_host(struct nlm_host *host)
|
|||
|
||||
/* If we've already created an RPC client, check whether
|
||||
* RPC rebind is required
|
||||
* Note: why keep rebinding if we're on a tcp connection?
|
||||
*/
|
||||
if ((clnt = host->h_rpcclnt) != NULL) {
|
||||
xprt = clnt->cl_xprt;
|
||||
if (!xprt->stream && time_after_eq(jiffies, host->h_nextrebind)) {
|
||||
if (time_after_eq(jiffies, host->h_nextrebind)) {
|
||||
clnt->cl_port = 0;
|
||||
host->h_nextrebind = jiffies + NLM_HOST_REBIND;
|
||||
dprintk("lockd: next rebind in %ld jiffies\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue