Re: [PATCH v2 1/2] IB/mlx5: use kvmalloc_array for mlx5_ib_wq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 16, 2017 at 11:31:22PM +1000, Li Dongyang wrote:
> 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@xxxxxxxxxx>
> ---
>  drivers/infiniband/hw/mlx5/qp.c  | 35 ++++++++++++++++++++---------------
>  drivers/infiniband/hw/mlx5/srq.c |  4 ++--
>  2 files changed, 22 insertions(+), 17 deletions(-)
>

Thanks,
Acked-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux