RDMA/hns: Add detailed comments for mb() call
authorYixian Liu <liuyixian@huawei.com>
Fri, 29 Dec 2017 11:26:18 +0000 (19:26 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 29 Dec 2017 18:07:04 +0000 (11:07 -0700)
commit4044a3f482a3373ea5379da47c04ebecb9a3f133
tree5db822e2e2a13e65183ee14ec69110702485f784
parent1ee47ab3e8d868185ec9a0bfe5da2a7f502c04ab
RDMA/hns: Add detailed comments for mb() call

This patch adds more detailed comments when we call the
memory barrier function, such as rmb, wmb and mb. Three
mb() callers are deleted since they are unnecessary.

Suggested-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c