From ce32b918dac9dd45bf2a7c5b709ec3dd435baf54 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Thu, 26 Apr 2007 13:33:02 +0000 Subject: [PATCH] - Fixes for for unlocking the mutex in case of error in functions mca_btl_openib_post_srr and btl_openib_endpoint_post_rr This commit was SVN r14530. --- ompi/mca/btl/openib/btl_openib.h | 1 + ompi/mca/btl/openib/btl_openib_endpoint.h | 1 + 2 files changed, 2 insertions(+) diff --git a/ompi/mca/btl/openib/btl_openib.h b/ompi/mca/btl/openib/btl_openib.h index d8af5ec476..3e8b91f058 100644 --- a/ompi/mca/btl/openib/btl_openib.h +++ b/ompi/mca/btl/openib/btl_openib.h @@ -478,6 +478,7 @@ static inline int mca_btl_openib_post_srr(mca_btl_openib_module_t* openib_btl, &bad_wr)) { BTL_ERROR(("error posting receive descriptors to shared " "receive queue: %s", strerror(errno))); + OPAL_THREAD_UNLOCK(&openib_btl->ib_lock); return OMPI_ERROR; } } diff --git a/ompi/mca/btl/openib/btl_openib_endpoint.h b/ompi/mca/btl/openib/btl_openib_endpoint.h index 2678960f4e..78bb52bc74 100644 --- a/ompi/mca/btl/openib/btl_openib_endpoint.h +++ b/ompi/mca/btl/openib/btl_openib_endpoint.h @@ -192,6 +192,7 @@ static inline int btl_openib_endpoint_post_rr(mca_btl_base_endpoint_t *endpoint, &bad_wr)) { BTL_ERROR(("error posting receive errno says %s\n", strerror(errno))); + OPAL_THREAD_UNLOCK(&openib_btl->ib_lock); return OMPI_ERROR; } }