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