Re: [PATCH 00/10] IB: Replace safe uses for ib_get_dma_mr with pd->local_dma_lkey

Bart Van Assche
2015-07-23T13:47:26Z

On 07/22/15 16:34, Jason Gunthorpe wrote:
> The remaining users of ib_get_dma_mr are all unsafe:
> [ ... ]
> drivers/infiniband/ulp/srp/ib_srp.c:
> srp_dev->mr = ib_get_dma_mr(srp_dev->pd,
> IB_ACCESS_LOCAL_WRITE |
> IB_ACCESS_REMOTE_READ |
> IB_ACCESS_REMOTE_WRITE);

Hello Jason,

This statement might need some clarification. Are you aware that this
memory region is only used if the kernel module parameter
register_always is zero ?

I will try to find some time to test the SRP changes in this series but
I'm not sure yet when I will be able to do that.

Bart.