summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-01-23 21:46:47 +0100
committerMichael S. Tsirkin <mst@redhat.com>2014-06-09 16:21:05 +0300
commit23cc5a991c7a9fb7e6d6550e65cee4f4173111c5 (patch)
treef064aee3320d1491255bc68d8ae3989e00499e0b /.gitignore
parent1860e379875dfe7271c649058aeddffe5afd9d0d (diff)
downloadop-kernel-dev-23cc5a991c7a9fb7e6d6550e65cee4f4173111c5.zip
op-kernel-dev-23cc5a991c7a9fb7e6d6550e65cee4f4173111c5.tar.gz
vhost-net: extend device allocation to vmalloc
Michael Mueller provided a patch to reduce the size of vhost-net structure as some allocations could fail under memory pressure/fragmentation. We are still left with high order allocations though. This patch is handling the problem at the core level, allowing vhost structures to use vmalloc() if kmalloc() failed. As vmalloc() adds overhead on a critical network path, add __GFP_REPEAT to kzalloc() flags to do this fallback only when really needed. People are still looking at cleaner ways to handle the problem at the API level, probably passing in multiple iovecs. This hack seems consistent with approaches taken since then by drivers/vhost/scsi.c and net/core/dev.c Based on patch by Romain Francoise. Cc: Michael Mueller <mimu@linux.vnet.ibm.com> Signed-off-by: Romain Francoise <romain@orebokech.com> Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud