diff options
author | Yangyang Li <[email protected]> | 2021-01-19 17:28:33 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-01-19 20:20:13 -0400 |
commit | 9293d3fcb70583f2c786f04ca788af026b7c4c5c (patch) | |
tree | da27553935e091e3d6d04328119aec4d98ad9521 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9f206f7398f6f6ec7dd0198c045c2459b4f720b6 (diff) |
RDMA/hns: Use mutex instead of spinlock for ida allocation
GFP_KERNEL may cause ida_alloc_range() to sleep, but the spinlock covering
this function is not allowed to sleep, so the spinlock needs to be changed
to mutex.
As there is a certain chance of memory allocation failure, GFP_ATOMIC is
not suitable for QP allocation scenarios.
Fixes: 71586dd20010 ("RDMA/hns: Create QP with selected QPN for bank load balance")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Yangyang Li <[email protected]>
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions