6bcd929500
Prevents us from unregistering two or more separately registered regions with a single notification. This fixes an ibv_mr leak in RDMA. When multiple registrations were unregistered with a single notification, only the first ibv_mr one would be freed and the remaining memory would possibly still remain DMA-able. As of now, unregistering multiple complete regions with a single unregister call is not possible. It will be implemented later, after the rest of the code is cleaned up. Change-Id: I7d61867fa61fd7a4a8a644ff45cab17125d63e1b Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/425555 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>