aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorYangyang Li <[email protected]>2021-01-19 09:28:33 +0000
committerJason Gunthorpe <[email protected]>2021-01-20 00:20:13 +0000
commit9293d3fcb70583f2c786f04ca788af026b7c4c5c (patch)
treeda27553935e091e3d6d04328119aec4d98ad9521 /net/switchdev/switchdev.c
parentRDMA/vmw_pvrdma: Fix network_hdr_type reported in WC (diff)
downloadkernel-9293d3fcb70583f2c786f04ca788af026b7c4c5c.tar.gz
kernel-9293d3fcb70583f2c786f04ca788af026b7c4c5c.zip
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 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions