Commit c7956e4
prov/tcp: Decrement subdomain ref count when key is not available
The following callchain for fi_mr_reg causes reference count increment
for the subdomain even in case of FI_KEY_NOTAVAIL
xnet_mplex_mr_regattr -> xnet_mr_regattr -> ofi_mr_regattr
Its counterpart does not decrement refcount for FI_KEY_NOTAVAIL as it
cannot be found in the memory region map.
xnet_mplex_mr_close -> xnet_subdomains_mr_close
As a result objects start to leak. The fix is to do the same as ofi_mr_close
and decrement reference count for the domain in case of FI_KEY_NOTAVAIL.
Signed-off-by: Grzegorz Morys <grzegorz.morys@gmail.com>1 parent 9f4f8a2 commit c7956e4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments