Whamcloud - gitweb
LU-15189 lnet: fix memory mapping.
[fs/lustre-release.git] / lustre / ptlrpc / pers.c
index 973f2b5..45af603 100644 (file)
@@ -58,6 +58,9 @@ void ptlrpc_fill_bulk_md(struct lnet_md *md, struct ptlrpc_bulk_desc *desc,
                return;
        }
 
+       if (desc->bd_is_rdma)
+               md->options |= LNET_MD_GPU_ADDR;
+
        if (mdidx == (desc->bd_md_count - 1))
                md->length = desc->bd_iov_count - start;
        else