]> 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)
commitbb47ac2a09352ebd0da69e7a539c87b394a57cea
tree5db822e2e2a13e65183ee14ec69110702485f784
parentc0a7085fafad8889027c196ae0d30f9da9131c83
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