diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-04 10:56:20 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-05 09:21:23 +0100 |
commit | ec2771128eeeeea1d0b3a7bec9998964c7826ce0 (patch) | |
tree | 9b05c3d504ea88c8272314d891febea85df8d5af | |
parent | cc84d7b1b215758ed2f48f03621a8945c8dd7ef9 (diff) | |
download | linux-stable-ec2771128eeeeea1d0b3a7bec9998964c7826ce0.tar.gz linux-stable-ec2771128eeeeea1d0b3a7bec9998964c7826ce0.tar.bz2 linux-stable-ec2771128eeeeea1d0b3a7bec9998964c7826ce0.zip |
RDMA/hns: Use GFP_ATOMIC in hns_roce_v2_modify_qp
[ Upstream commit 4e69cf1fe2c52d189acdd06c1fd99cc258aba61f ]
The the below commit, hns_roce_v2_modify_qp is called inside spinlock
while using GFP_KERNEL. Change it to GFP_ATOMIC.
Fixes: 0425e3e6e0c7 ("RDMA/hns: Support flush cqe for hip08 in kernel space")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index a5ec900a14ae..7021444f18b4 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -3446,7 +3446,7 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, struct device *dev = hr_dev->dev; int ret = -EINVAL; - context = kcalloc(2, sizeof(*context), GFP_KERNEL); + context = kcalloc(2, sizeof(*context), GFP_ATOMIC); if (!context) return -ENOMEM; |