Whamcloud - gitweb
LU-9472 lnd: Fix FastReg map/unmap for MLX5 15/27015/2
authorDoug Oucharek <doug.s.oucharek@intel.com>
Tue, 9 May 2017 18:07:37 +0000 (11:07 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 May 2017 18:44:01 +0000 (18:44 +0000)
commitb436c75d9488222190de8b30f56d720f8ec63d6f
tree1fec2f2aba1de72de69e8aeb27a5edd8341bca64
parentdf6e700c80f2c216270ca499db7373752f252166
LU-9472 lnd: Fix FastReg map/unmap for MLX5

The FastReg support in ko2iblnd was not unmapping pool items
causing the items to leak.  In addition, the mapping code
is not growing the pool like we do with FMR.

This patch makes sure we are unmapping FastReg pool elements
when we are done with them.  It also makes sure the pool
will grow when we depleat the pool.

Signed-off-by: Doug Oucharek <doug.s.oucharek@intel.com>
Change-Id: I4b4ba4de72941b38c4115a00a992cfd1e78e9e49
Reviewed-on: https://review.whamcloud.com/27015
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@seagate.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd_cb.c