RDMA/hns: Use GFP_ATOMIC under spin lock
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 7 Apr 2021 15:49:00 +0000 (15:49 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 7 Apr 2021 23:26:32 +0000 (20:26 -0300)
commit2abb7431736be539b2e0926388c7c2602a68a178
treece5ca8184a54e02d13432d22156052653b60cbcb
parent7e111bbff92620f56609a81353bba5bd1944851b
RDMA/hns: Use GFP_ATOMIC under spin lock

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes: f91696f2f053 ("RDMA/hns: Support congestion control type selection according to the FW")
Link: https://lore.kernel.org/r/20210407154900.3486268-1-weiyongjun1@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c