Skip to content
Commit b5883008 authored by Li Dongyang's avatar Li Dongyang Committed by Doug Ledford
Browse files

IB/mlx5: use kvmalloc_array for mlx5_ib_wq



We observed multiple times on our Lustre OSS servers that when
the system memory is fragmented, kmalloc() in create_kernel_qp()
could fail order 4/5 allocations while we still have many free pages.

Switch to kvmalloc_array() to allow the operation to contine.

Signed-off-by: default avatarLi Dongyang <dongyang.li@anu.edu.au>
Acked-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 7be05753
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment