If we were ever to do an allocation with kmalloc, we could
get non-page aligned memory. So just use vmalloc directly.
Sadly, this isn't the problem with infiniband. We never
ask for < 8192, which is the libcfs kmalloc/vmalloc cutoff.
Still, this is a timebomb if we ever changed the libcfs
kmalloc/vmalloc cutoff, so, fix it.
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Id20898065b516d363d9dc280e71be1b5cfb6f4a7
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52532
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
ptr_pages[i][j] = alloc_page(GFP_NOFS |
__GFP_HIGHMEM);
else {
- OBD_ALLOC_LARGE(ptr_pages[i][j],
+ OBD_VMALLOC(ptr_pages[i][j],
element_size(page_pool));
}
if (ptr_pages[i][j] == NULL)