1
1
openmpi/opal/mca/rcache
Nathan Hjelm 1d56007ab1 rcache/vma: make rcache lock recursive
There is currently a path through the grdma mpool and vma rcache that
leads to deadlock. It happens during the rcache insert. Before the
insert the rcache mutex is locked. During the call a new vma item is
allocated and then inserted into the rcache tree. The allocation
currently goes through the malloc hooks which may (and does) call back
into the mpool if the ptmalloc heap needs to be reallocated. This
callback tries to lock the rcache mutex which leads to the
deadlock. This has been observed with multi-threaded tests and the
openib btl.

This change may lead to some minor slowdown in the rcache vma when
threading is enabled. This will only affect larger message paths in
some of the btls.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2015-08-26 10:01:37 -06:00
..
base Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
vma rcache/vma: make rcache lock recursive 2015-08-26 10:01:37 -06:00
Makefile.am Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
rcache.h Purge whitespace from the repo 2015-06-23 20:59:57 -07:00