]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7983af27c09ae180d1578b26d26f83c3b716f2a
tree5db822e2e2a13e65183ee14ec69110702485f784
parent324c0b938bedc786bea92f3e0407a3740b4be2d6
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