1
1
Artem Polyakov 3c9fd567b6 Fix openib race condition when direct modex is used.
The problem was in mca_btl_openib_proc_create. This function may be called
from several places simultaneously:
* from the main thread when somebody wants to do `MPI_Send()` (for example) for
the first time;
* from udcm if the counterpart peer is trying to connect and `mca_btl_openib_get_ep()`
is called.

In this case one of the threads may add an uninitialized proc structure
to the `mca_btl_openib_component.ib_procs` and the other will read it and
treat as initialized.

This commit turns ib_proc initialization into a single atomic operation.
2015-12-21 18:52:30 +06:00
..
2015-08-18 09:11:38 -06:00
2015-06-23 20:59:57 -07:00
2015-08-29 16:04:10 -07:00
2015-06-25 10:14:13 -06:00
2015-06-23 20:59:57 -07:00