aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/rpc_rdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/xprtrdma/rpc_rdma.c')
-rw-r--r--net/sunrpc/xprtrdma/rpc_rdma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c
index e55427f73dfe..721dae795d68 100644
--- a/net/sunrpc/xprtrdma/rpc_rdma.c
+++ b/net/sunrpc/xprtrdma/rpc_rdma.c
@@ -681,6 +681,8 @@ rpcrdma_conn_func(struct rpcrdma_ep *ep)
681 struct rpc_xprt *xprt = ep->rep_xprt; 681 struct rpc_xprt *xprt = ep->rep_xprt;
682 682
683 spin_lock_bh(&xprt->transport_lock); 683 spin_lock_bh(&xprt->transport_lock);
684 if (++xprt->connect_cookie == 0) /* maintain a reserved value */
685 ++xprt->connect_cookie;
684 if (ep->rep_connected > 0) { 686 if (ep->rep_connected > 0) {
685 if (!xprt_test_and_set_connected(xprt)) 687 if (!xprt_test_and_set_connected(xprt))
686 xprt_wake_pending_tasks(xprt, 0); 688 xprt_wake_pending_tasks(xprt, 0);