RDMA/core: Add weak ordering dma attr to dma mapping
authorMichael Guralnik <michaelgur@mellanox.com>
Wed, 12 Feb 2020 07:35:59 +0000 (09:35 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 13 Feb 2020 17:38:02 +0000 (13:38 -0400)
commitf03d9fadfe13a78ee28fec320d43f7b37574adcb
tree93e35fb818ea3843ba89a9bbec7bb68e0e85bff8
parentca750d4a9c426854e221ca404fbefeab9800134e
RDMA/core: Add weak ordering dma attr to dma mapping

For memory regions registered with IB_ACCESS_RELAXED_ORDERING will be dma
mapped with the DMA_ATTR_WEAK_ORDERING.

This will allow reads and writes to the mapping to be weakly ordered, such
change can enhance performance on some supporting architectures.

Link: https://lore.kernel.org/r/20200212073559.684139-1-leon@kernel.org
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem.c