@@ -225,14 +225,6 @@ int mca_pml_ob1_add_comm(ompi_communicator_t* comm)
225
225
* non_existing_communicator_pending list. */
226
226
opal_list_remove_item (& mca_pml_ob1 .non_existing_communicator_pending ,
227
227
(opal_list_item_t * ) frag );
228
- if (OMPI_COMM_CHECK_ASSERT_ALLOW_OVERTAKE (comm )) {
229
- opal_list_append ( & pml_proc -> unexpected_frags , (opal_list_item_t * )frag );
230
- PERUSE_TRACE_MSG_EVENT (PERUSE_COMM_MSG_INSERT_IN_UNEX_Q , comm ,
231
- hdr -> hdr_src , hdr -> hdr_tag , PERUSE_RECV );
232
- continue ;
233
- }
234
-
235
- add_fragment_to_unexpected :
236
228
237
229
/* We generate the MSG_ARRIVED event as soon as the PML is aware
238
230
* of a matching fragment arrival. Independing if it is received
@@ -251,6 +243,15 @@ int mca_pml_ob1_add_comm(ompi_communicator_t* comm)
251
243
*/
252
244
pml_proc = mca_pml_ob1_peer_lookup (comm , hdr -> hdr_src );
253
245
246
+ if (OMPI_COMM_CHECK_ASSERT_ALLOW_OVERTAKE (comm )) {
247
+ opal_list_append ( & pml_proc -> unexpected_frags , (opal_list_item_t * )frag );
248
+ PERUSE_TRACE_MSG_EVENT (PERUSE_COMM_MSG_INSERT_IN_UNEX_Q , comm ,
249
+ hdr -> hdr_src , hdr -> hdr_tag , PERUSE_RECV );
250
+ continue ;
251
+ }
252
+
253
+ add_fragment_to_unexpected :
254
+
254
255
if (((uint16_t )hdr -> hdr_seq ) == ((uint16_t )pml_proc -> expected_sequence ) ) {
255
256
/* We're now expecting the next sequence number. */
256
257
pml_proc -> expected_sequence ++ ;
0 commit comments