[PATCH] staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE

2015-05-04 Thread green
From: Oleg Drokin gr...@linuxhacker.ru Create libcfs_kvzalloc and libcfs_kvzalloc_cpt that are designed to replace OBD_ALLOC_LARGE and OBD_CPT_ALLOC_LARGE. Not a drop-in replacement as they also take gfp flags armument for more flexibility. Signed-off-by: Oleg Drokin gr...@linuxhacker.ru ---

Re: [PATCH] staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE

2015-05-03 Thread Oleg Drokin
Hello! On May 3, 2015, at 2:31 PM, Greg KH wrote: -/* Allocations above this size are considered too big and could not be done - * atomically. - * - * Be very careful when changing this value, especially when decreasing it, - * since vmalloc in Linux doesn't perform well on multi-cores

Re: [PATCH] staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE

2015-05-03 Thread Greg KH
On Sat, May 02, 2015 at 11:58:21PM -0400, gr...@linuxhacker.ru wrote: From: Oleg Drokin gr...@linuxhacker.ru Create libcfs_kvzalloc and libcfs_kvzalloc_cpt are are designed to replace OBD_ALLOC_LARGE and OBD_CPT_ALLOC_LARGE. Not a drop-in replacement as they also take gfp flags armument

Re: [PATCH] staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE

2015-05-03 Thread Greg KH
On Sun, May 03, 2015 at 03:14:58PM -0400, Oleg Drokin wrote: Hello! On May 3, 2015, at 2:31 PM, Greg KH wrote: -/* Allocations above this size are considered too big and could not be done - * atomically. - * - * Be very careful when changing this value, especially when decreasing