diff options
| author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2015-07-21 08:36:07 -0400 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-08-26 20:44:56 +0200 |
| commit | c477d3ce041a3bb7bfbd00c493332f29153c21c5 (patch) | |
| tree | 9e7e39524f36d7635062f6bc1f43a7709de0b3d9 /include/linux/backing-dev.h | |
| parent | 27e8d7a0e92e259cf66b6fb76db159ddc77513d5 (diff) | |
IB/qib: Change lkey table allocation to support more MRs
commit d6f1c17e162b2a11e708f28fa93f2f79c164b442 upstream.
The lkey table is allocated with with a get_user_pages() with an
order based on a number of index bits from a module parameter.
The underlying kernel code cannot allocate that many contiguous pages.
There is no reason the underlying memory needs to be physically
contiguous.
This patch:
- switches the allocation/deallocation to vmalloc/vfree
- caps the number of bits to 23 to insure at least 1 generation bit
o this matches the module parameter description
Reviewed-by: Vinit Agnihotri <vinit.abhay.agnihotri@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'include/linux/backing-dev.h')
0 files changed, 0 insertions, 0 deletions
