Whamcloud - gitweb
LU-8540 o2iblnd: Add support for 5arg ib_map_mr_sg()
[fs/lustre-release.git] / lnet / klnds / o2iblnd / o2iblnd.c
index aeecb30..9c6b8d5 100644 (file)
@@ -1877,8 +1877,13 @@ again:
                                }
 
 #ifdef HAVE_IB_MAP_MR_SG
+#ifdef HAVE_IB_MAP_MR_SG_5ARGS
+                               n = ib_map_mr_sg(mr, tx->tx_frags,
+                                                tx->tx_nfrags, NULL, PAGE_SIZE);
+#else
                                n = ib_map_mr_sg(mr, tx->tx_frags,
                                                 tx->tx_nfrags, PAGE_SIZE);
+#endif
                                if (unlikely(n != tx->tx_nfrags)) {
                                        CERROR("Failed to map mr %d/%d "
                                               "elements\n", n, tx->tx_nfrags);