IB/mlx4: Use vmalloc for WR buffers when needed
authorWengang Wang <wen.gang.wang@oracle.com>
Thu, 8 Oct 2015 05:27:04 +0000 (13:27 +0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 8 Dec 2015 21:48:10 +0000 (16:48 -0500)
commit0ef2f05c7e02ff99c0b5b583d7dee2cd12b053f2
treec5305adcf047948e7eb5d368b951c47940a1869c
parent73d4da7b9fec13cbddcf548888c4d0e46f1d5087
IB/mlx4: Use vmalloc for WR buffers when needed

There are several hits that WR buffer allocation(kmalloc) failed.
It failed at order 3 and/or 4 contigous pages allocation. At the same time
there are actually 100MB+ free memory but well fragmented.
So try vmalloc when kmalloc failed.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mlx4/srq.c