commit | b588300801f3502a7de5ca897af68019fbb3bc79 | [log] [tgz] |
---|---|---|
author | Li Dongyang <dongyang.li@anu.edu.au> | Wed Aug 16 23:31:22 2017 +1000 |
committer | Doug Ledford <dledford@redhat.com> | Tue Aug 22 16:48:23 2017 -0400 |
tree | 80edf89cc303d0ed997a5d4589a2cb4af6c2b430 | |
parent | 7be05753ccc27ce056d45f06a50d150927a88ed7 [diff] |
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>