summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-09-17 09:30:34 +0300
committerMichael S. Tsirkin <mst@redhat.com>2013-09-17 22:55:46 +0300
commit595cb754983d4387cb25b3dcf08f5129663d634e (patch)
treefbd228ea66ec0cf53681efb952fc084a8b6603f0 /arch/xtensa
parentac9fde2474d04bd6574a037482e3de02b488a6c6 (diff)
downloadop-kernel-dev-595cb754983d4387cb25b3dcf08f5129663d634e.zip
op-kernel-dev-595cb754983d4387cb25b3dcf08f5129663d634e.tar.gz
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 <asias@redhat.com> Reported-by: Dan Aloni <alonid@stratoscale.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud