[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 <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:

committed by
Trond Myklebust

parent
808012fbb2
commit
43118c29de
@@ -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",
|
||||
|
Reference in New Issue
Block a user