From b3b8a2a23af8204490014e8e8153bdc6b9899014 Mon Sep 17 00:00:00 2001 From: Yael Dayan Date: Thu, 16 Aug 2012 07:04:40 +0000 Subject: [PATCH] function mca_btl_openib_endpoint_post_send can return 3 statuses: - OMPI_SUCCESS - OMPI_ERROR - OMPI_ERR_RESOURCE_BUSY If an "OMPI_ERR_OUT_OF_RESOURCE" occurs, the request is added to the pending list, and will be handled later. An error message should not be printed to the user in this case. This is not an error, but rather a notification of a possible valid condition. Only in the case of "OMPI_ERROR" should it be printed to the user. This commit was SVN r27065. --- ompi/mca/btl/openib/btl_openib_endpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ompi/mca/btl/openib/btl_openib_endpoint.c b/ompi/mca/btl/openib/btl_openib_endpoint.c index 9ea84d47db..d160ffe478 100644 --- a/ompi/mca/btl/openib/btl_openib_endpoint.c +++ b/ompi/mca/btl/openib/btl_openib_endpoint.c @@ -685,8 +685,9 @@ void mca_btl_openib_endpoint_connected(mca_btl_openib_endpoint_t *endpoint) frag = to_send_frag(frag_item); /* We need to post this one */ - if(OMPI_SUCCESS != mca_btl_openib_endpoint_post_send(endpoint, frag)) - BTL_ERROR(("Error posting send")); + if (OMPI_ERROR == mca_btl_openib_endpoint_post_send(endpoint, frag)) { + BTL_ERROR(("Error posting send")); + } } OPAL_THREAD_UNLOCK(&endpoint->endpoint_lock);