Whamcloud - gitweb
LU-8196 obd: force very large allocations to use vmalloc 20/20420/3
authorBob Glossman <bob.glossman@intel.com>
Tue, 24 May 2016 18:16:35 +0000 (11:16 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:55:49 +0000 (03:55 +0000)
commit5b8749c4669e93dcafebc4c93aa1974c96ff43c7
tree2277fd30b255d3cb686be85cd68e817c5e766202
parent449186a71320e3406f6f06cc8cc89be71c016e9f
LU-8196 obd: force very large allocations to use vmalloc

In cases where the requsted allocation size is very large
use OBD_VMALLOC().  This avoids warnings from el7 and newer
kernels due to very large kmalloc()s.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I87e95b1f8e5e50bc35d713a1775313c10f0368a9
Reviewed-on: http://review.whamcloud.com/20420
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd_support.h