Skip to content

Commit 60b958c

Browse files
authored
Merge pull request #2842 from hjelmn/v2.x_event_fix
verbs: remove extra event user increment/decrement operation
2 parents 8c67525 + 9d11ff1 commit 60b958c

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

opal/mca/btl/openib/btl_openib_endpoint.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
1313
* Copyright (c) 2006-2013 Cisco Systems, Inc. All rights reserved.
14-
* Copyright (c) 2006-2016 Los Alamos National Security, LLC. All rights
14+
* Copyright (c) 2006-2017 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2006-2007 Voltaire All rights reserved.
1717
* Copyright (c) 2006-2009 Mellanox Technologies, Inc. All rights reserved.
@@ -611,10 +611,6 @@ void mca_btl_openib_endpoint_connected(mca_btl_openib_endpoint_t *endpoint)
611611
endpoint->endpoint_state = MCA_BTL_IB_CONNECTED;
612612
endpoint->endpoint_btl->device->non_eager_rdma_endpoints++;
613613

614-
/* The connection is correctly setup. Now we can decrease the
615-
event trigger. */
616-
opal_progress_event_users_decrement();
617-
618614
if(MCA_BTL_XRC_ENABLED) {
619615
if (master) {
620616
while (NULL != (ep_item = opal_list_remove_first(&endpoint->ib_addr->pending_ep))) {

opal/mca/btl/openib/btl_openib_endpoint.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
1313
* Copyright (c) 2007-2009 Cisco Systems, Inc. All rights reserved.
14-
* Copyright (c) 2006-2015 Los Alamos National Security, LLC. All rights
14+
* Copyright (c) 2006-2017 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2006-2007 Voltaire All rights reserved.
1717
* Copyright (c) 2007-2009 Mellanox Technologies. All rights reserved.
@@ -498,13 +498,6 @@ static inline int check_endpoint_state(mca_btl_openib_endpoint_t *ep,
498498
if (OPAL_SUCCESS == rc) {
499499
rc = OPAL_ERR_RESOURCE_BUSY;
500500
}
501-
/*
502-
* As long as we expect a message from the peer (in order
503-
* to setup the connection) let the event engine pool the
504-
* OOB events. Note: we increment it once peer active
505-
* connection.
506-
*/
507-
opal_progress_event_users_increment();
508501
/* fall through */
509502
default:
510503
opal_list_append(pending_list, (opal_list_item_t *)des);

orte/mca/oob/ud/oob_ud_event.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2011-2012 Los Alamos National Security, LLC. All rights
3+
* Copyright (c) 2011-2017 Los Alamos National Security, LLC. All rights
44
* reserved.
55
* 2014 Mellanox Technologies, Inc.
66
* All rights reserved.
@@ -53,9 +53,6 @@ static bool event_completed_set = false;
5353
void mca_oob_ud_event_start_monitor (mca_oob_ud_device_t *device)
5454
{
5555
if (!event_started) {
56-
#if !OPAL_ENABLE_PROGRESS_THREADS
57-
opal_progress_event_users_increment ();
58-
#endif
5956
opal_event_set (orte_event_base, &device->event, device->ib_channel->fd,
6057
OPAL_EV_READ, mca_oob_ud_event_dispatch, (void *) device);
6158
opal_event_add (&device->event, NULL);
@@ -66,9 +63,6 @@ void mca_oob_ud_event_start_monitor (mca_oob_ud_device_t *device)
6663
void mca_oob_ud_event_stop_monitor (mca_oob_ud_device_t *device)
6764
{
6865
if (event_started) {
69-
#if !OPAL_ENABLE_PROGRESS_THREADS
70-
opal_progress_event_users_decrement ();
71-
#endif
7266
opal_event_del (&device->event);
7367
mca_oob_ud_stop_events (device);
7468
event_started = false;

0 commit comments

Comments
 (0)