IB/ehca: Fall back to vmalloc() for big allocations
authorStefan Roscher <ossrosch@linux.vnet.ibm.com>
Wed, 13 May 2009 23:52:42 +0000 (16:52 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 13 May 2009 23:52:42 +0000 (16:52 -0700)
commitc94f156f63c835ffc02b686f9d4238b106f31a5d
tree2b9e4a8543259fd077f79624838d93b2587e3f73
parentbf31a1a02eb28d9bda0bb74345df7889faeb7335
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>
drivers/infiniband/hw/ehca/ipz_pt_fn.c