aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/ehca_qp.c
diff options
context:
space:
mode:
authorStefan Roscher <ossrosch@linux.vnet.ibm.com>2009-05-13 16:52:42 -0700
committerRoland Dreier <rolandd@cisco.com>2009-05-13 16:52:42 -0700
commitc94f156f63c835ffc02b686f9d4238b106f31a5d (patch)
tree2b9e4a8543259fd077f79624838d93b2587e3f73 /drivers/infiniband/hw/ehca/ehca_qp.c
parentIB/ehca: Replace vmalloc() with kmalloc() for queue allocation (diff)
downloadlinux-dev-c94f156f63c835ffc02b686f9d4238b106f31a5d.tar.xz
linux-dev-c94f156f63c835ffc02b686f9d4238b106f31a5d.zip
IB/ehca: Fall back to vmalloc() for big allocations
In case of large queue pairs there is the possibillity of allocation failures due to memory fragmentation when using kmalloc(). To ensure the memory is allocated even if kmalloc() can not find chunks which are big enough, we fall back to allocating the memory with vmalloc(). Signed-off-by: Stefan Roscher <stefan.roscher@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_qp.c')
0 files changed, 0 insertions, 0 deletions