From: Michael S. Tsirkin Date: Tue, 17 Sep 2013 06:30:34 +0000 (+0300) Subject: vhost/scsi: use vmalloc for order-10 allocation X-Git-Tag: v3.12-rc2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=595cb754983d4387cb25b3dcf08f5129663d634e;p=pandora-kernel.git vhost/scsi: use vmalloc for order-10 allocation As vhost scsi device struct is large, if the device is created on a busy system, kzalloc() might fail, so this patch does a fallback to vzalloc(). As vmalloc() adds overhead on data-path, add __GFP_REPEAT to kzalloc() flags to do this fallback only when really needed. Reviewed-by: Asias He Reported-by: Dan Aloni Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed