> > We now only use it from ib_alloc_pd to create a local DMA lkey if the > device doesn't provide one, or a global rkey if the ULP requests it. > > This patch removes ib_get_dma_mr and open codes the functionality in > ib_alloc_pd so that we can simply the code and prevent abuse of the nit: simply -> simplify > functionality. As a side effect we can also simplify things by removing > the valid access bit check, and the PD refcounting. > > In the future I hope to also remove the per-PD global MR entirely by > shifting this work into the HW drivers, as one step towards avoiding > the struct ib_mr overload for various different use cases. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- Reviewed-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html