[rds-devel] [PATCH 3/4] rds/ib: don't create the dma memory region
with remote access flags set
Or Gerlitz
ogerlitz at voltaire.com
Mon Jan 14 01:57:29 PST 2008
The per device dma mr memory region is not used for rdma and
hence no need to set the remote access flags on its creation.
Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>
Index: ofa_1_3_kernel-20080113-0200/net/rds/ib.c
===================================================================
--- ofa_1_3_kernel-20080113-0200.orig/net/rds/ib.c
+++ ofa_1_3_kernel-20080113-0200/net/rds/ib.c
@@ -92,9 +92,7 @@ void rds_ib_add_one(struct ib_device *de
goto free_dev;
rds_ibdev->mr = ib_get_dma_mr(rds_ibdev->pd,
- IB_ACCESS_LOCAL_WRITE |
- IB_ACCESS_REMOTE_READ |
- IB_ACCESS_REMOTE_WRITE);
+ IB_ACCESS_LOCAL_WRITE);
if (IS_ERR(rds_ibdev->mr))
goto err_pd;
More information about the rds-devel
mailing list