Re: [PATCH -next] RDMA/hns: Use GFP_ATOMIC in hns_roce_v2_modify_qp

2019-03-04 Thread Jason Gunthorpe
On Mon, Mar 04, 2019 at 10:56:20AM +0800, Yue Haibing wrote: > From: YueHaibing > > In commit 0425e3e6e0c7, hns_roce_v2_modify_qp called inside > spinlock which using GFP_KERNEL, it may sleep with holding > the spinlock, so we should use GFP_ATOMIC instead. > > Fixes: 0425e3e6e0c7 ("RDMA/hns: Su

[PATCH -next] RDMA/hns: Use GFP_ATOMIC in hns_roce_v2_modify_qp

2019-03-03 Thread Yue Haibing
From: YueHaibing In commit 0425e3e6e0c7, hns_roce_v2_modify_qp called inside spinlock which using GFP_KERNEL, it may sleep with holding the spinlock, so we should use GFP_ATOMIC instead. Fixes: 0425e3e6e0c7 ("RDMA/hns: Support flush cqe for hip08 in kernel space") Signed-off-by: YueHaibing ---