Re: [PATCH V3] IB/mlx4: Use vmalloc for WR buffers when needed

2015-12-16 Thread Wengang Wang
Hi Matt, Yes, you are right. Since the patch is already merged in, I am going to make a separated patch for that. thanks, wengang 在 2015年12月12日 04:28, Matthew Finlay 写道: Hi Wengang, I was going through your patch set here, and it seems that you missed changing kfree to kvfree in

Re: [PATCH V3] IB/mlx4: Use vmalloc for WR buffers when needed

2015-12-11 Thread Matthew Finlay
Hi Wengang, I was going through your patch set here, and it seems that you missed changing kfree to kvfree in mlx4_ib_destroy_srq(). In the current code if the srq wrid is allocated using vmalloc, then on cleanup we will use kfree, which is a bug. Thanks, -matt On 10/7/15, 10:27 PM,

[PATCH V3] IB/mlx4: Use vmalloc for WR buffers when needed

2015-10-07 Thread Wengang Wang
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