|
@@ -804,9 +804,8 @@ rpcrdma_ep_connect(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia)
|
|
struct rdma_cm_id *id;
|
|
struct rdma_cm_id *id;
|
|
int rc = 0;
|
|
int rc = 0;
|
|
int retry_count = 0;
|
|
int retry_count = 0;
|
|
- int reconnect = (ep->rep_connected != 0);
|
|
|
|
|
|
|
|
- if (reconnect) {
|
|
|
|
|
|
+ if (ep->rep_connected != 0) {
|
|
struct rpcrdma_xprt *xprt;
|
|
struct rpcrdma_xprt *xprt;
|
|
retry:
|
|
retry:
|
|
rc = rpcrdma_ep_disconnect(ep, ia);
|
|
rc = rpcrdma_ep_disconnect(ep, ia);
|
|
@@ -871,9 +870,6 @@ if (strnicmp(ia->ri_id->device->dma_device->bus->name, "pci", 3) == 0) {
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
- if (reconnect)
|
|
|
|
- return 0;
|
|
|
|
-
|
|
|
|
wait_event_interruptible(ep->rep_connect_wait, ep->rep_connected != 0);
|
|
wait_event_interruptible(ep->rep_connect_wait, ep->rep_connected != 0);
|
|
|
|
|
|
/*
|
|
/*
|