Spdk/test/env/memory
Aviv Ben-David c883771123 env/memory: fix unregistration of memory after memory registration issue
The current error handling of `spdk_mem_map_notify_walk` has off by 2
issue. This issue can split one memory region to multiple smaller
regions when calling the callback to unregister the memory region.
Also, in case of failure, the 1 GB maps of the map failed to be freed.

RDMA doesn't support this behavior and support calling the callback only
once for each previously registered memory region.

Signed-off-by: Aviv Ben-David <aviv.bendavid@vastdata.com>
Change-Id: I65b667f2e84533f234a2e330b20e9ad9eef32854
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11219
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2022-03-09 09:06:30 +00:00
..
.gitignore test: move lib/env up one level 2018-03-29 00:31:24 -04:00
Makefile test/env: don't link env libraries for memory unit tests 2019-12-04 15:29:57 +00:00
memory_ut.c env/memory: fix unregistration of memory after memory registration issue 2022-03-09 09:06:30 +00:00