Messages in this thread | | | Subject | Re: [PATCH] mtip32xx: switch to vmalloc() to mitigate high order allocation failures | From | Joe Perches <> | Date | Fri, 14 Mar 2014 00:48:03 -0700 |
| |
On Thu, 2014-03-13 at 15:57 -0700, Sam Bradshaw wrote: > The mtip_port kmalloc() allocation is relatively high order, in > particular since the recent doubling of the size of the scatterlist > container. The allocation has been shown to fail during SRSI under > fragmented or low memory conditions. Switching to vmalloc() mitigates > the problem. Converted both mtip_port and driver_data allocations for > consistency.
It'd probably be better to use kmalloc and then only if it fails use vmalloc.
See examples like net/sched/sch_hhf.c
| |