Whamcloud - gitweb
LU-14488 o2ib: Use rdma_connect_locked if it is defined
[fs/lustre-release.git] / lnet / klnds / o2iblnd / o2iblnd.h
index 3e4013f..a69c3d0 100644 (file)
@@ -1064,6 +1064,10 @@ static inline unsigned int kiblnd_sg_dma_len(struct ib_device *dev,
         return ib_sg_dma_len(dev, sg);
 }
 
+#ifndef HAVE_RDMA_CONNECT_LOCKED
+#define rdma_connect_locked(cmid, cpp) rdma_connect(cmid, cpp)
+#endif
+
 /* XXX We use KIBLND_CONN_PARAM(e) as writable buffer, it's not strictly
  * right because OFED1.2 defines it as const, to use it we have to add
  * (void *) cast to overcome "const" */