]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Optimize post and poll process
authorLang Cheng <chenglang@huawei.com>
Wed, 20 May 2020 13:53:13 +0000 (21:53 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 May 2020 17:02:11 +0000 (14:02 -0300)
commitca3e7e40a963890fee8147da0494397e3f671b7c
treee48098710aacfe8676ab4d5d1f9a3160ffb5166f
parent38142114e0c62a4d461f7ac58204e25516aff16f
RDMA/hns: Optimize post and poll process

Add unlikely() and likely() to optimize main I/O process code.

Link: https://lore.kernel.org/r/1589982799-28728-4-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c