From c8cee23ee7a665e66da19b29a2c6c840c7731982 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 21 Aug 2012 15:47:15 +0000 Subject: [PATCH] Priorities really shouldn't be less than 0. This commit was SVN r27098. --- ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c | 4 ++-- orte/mca/oob/ud/oob_ud_component.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c b/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c index 92deed72ad..192e0541a4 100644 --- a/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c +++ b/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c @@ -307,7 +307,7 @@ static int udcm_send_request (mca_btl_base_endpoint_t *lcl_ep, #define UDCM_GRH_SIZE (sizeof (struct ibv_grh)) /* Priority of this connection module */ -static int udcm_priority = -1; +static int udcm_priority = 0; /* Number of receive work requests to post */ static int udcm_recv_count = UDCM_MIN_RECV_COUNT; @@ -362,7 +362,7 @@ static void udcm_component_register(void) false, false, udcm_priority, &udcm_priority); if (udcm_priority > 100) { udcm_priority = 100; - } else if (udcm_priority < -1) { + } else if (udcm_priority < 0) { udcm_priority = 0; } diff --git a/orte/mca/oob/ud/oob_ud_component.c b/orte/mca/oob/ud/oob_ud_component.c index 849c6677fc..238f4be836 100644 --- a/orte/mca/oob/ud/oob_ud_component.c +++ b/orte/mca/oob/ud/oob_ud_component.c @@ -215,7 +215,7 @@ static mca_oob_t *mca_oob_ud_component_init(int *priority) /* set the priority so that we will select this component * only if someone directs to do so */ - *priority = -1; + *priority = 0; opal_hash_table_init (&mca_oob_ud_component.ud_peers, 1024);