Whamcloud - gitweb
EX-8245 ptlrpc: always do vmalloc
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 28 Sep 2023 00:09:03 +0000 (20:09 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 2 Oct 2023 01:00:55 +0000 (01:00 +0000)
commitf0874ea680e31819ca4028e3760eaf5a5959621a
treede04b26fbdd4024a131055c9b7c293b739a79874
parent50774025351e5584a25291744e23840de037065c
EX-8245 ptlrpc: always do vmalloc

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>
lustre/ptlrpc/sec_bulk.c