diff options
author | Li Dongyang <dongyang.li@anu.edu.au> | 2017-08-16 16:31:22 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-22 23:48:23 +0300 |
commit | b588300801f3502a7de5ca897af68019fbb3bc79 (patch) | |
tree | 80edf89cc303d0ed997a5d4589a2cb4af6c2b430 /drivers/infiniband/hw/mlx4/qp.c | |
parent | 7be05753ccc27ce056d45f06a50d150927a88ed7 (diff) | |
download | linux-b588300801f3502a7de5ca897af68019fbb3bc79.tar.xz |
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: Li Dongyang <dongyang.li@anu.edu.au>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/qp.c')
0 files changed, 0 insertions, 0 deletions