Whamcloud - gitweb
LU-9447 o2iblnd: Check for 2 arg ib_alloc_pd 34/26934/3
authorChris Horn <hornc@cray.com>
Tue, 2 May 2017 21:42:31 +0000 (16:42 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 May 2017 03:47:37 +0000 (03:47 +0000)
commit8946ce958c123ba05576d792e8af22ea899a43c8
tree01b8771d21c2c49cfefc3771f0f55a7e62180513
parentaf73b39130f789341c9eba4cdd8427bba895b005
LU-9447 o2iblnd: Check for 2 arg ib_alloc_pd

A flags argument was added to ib_alloc_pd() in Linux 4.9 commit
ed082d36a7b2c27d1cda55fdfb28af18040c4a89. The fix for LU-9026, Lustre
commit e4297ef38561f1e788ba73ca0c8078a09dc8c303, accounted for this
change by checking for the removal of ib_get_dma_mr() (which happened
separately). However, SLES 12 SP3 beta 1 adopted the extra argument
to ib_alloc_pd(), but retains the ib_get_dma_mr() function. As a
result, we need an explicit check for the two argument version of
ib_alloc_pd().

Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: Iecde347e9f18149cac63e243082a2686de260ba7
Reviewed-on: https://review.whamcloud.com/26934
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/autoconf/lustre-lnet.m4
lnet/klnds/o2iblnd/o2iblnd.c