RDMA/qedr: Fix wmb usage in qedr
authorKalderon, Michal <Michal.Kalderon@cavium.com>
Thu, 5 Apr 2018 06:59:29 +0000 (09:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 5 Apr 2018 17:10:14 +0000 (11:10 -0600)
commit09c4854fde84421726a90249b4c20df2492f425f
tree92ccd2ca5b71eeffbe639218e52865c4fbce7e5a
parent39e00b6cf65831469a57333a929b8ca986892798
RDMA/qedr: Fix wmb usage in qedr

This patch comes as a result of Sinan Kaya's work and the decision that
writel() must be a strong enough barrier for DMA.

wmb usages in qedr driver have either been removed where they were there
only to order DMA accesses, and replaced with smp_wmb and comments for the
places that the barrier was there for SMP reasons.

Fixes: 561e5d48968b ("RDMA/qedr: eliminate duplicate barriers on weakly-ordered archs")
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qedr/verbs.c