From 3c900a7aa22080ae5286e01edbc08d17aec60f4d Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Thu, 6 Oct 2005 21:50:58 +0000 Subject: [PATCH] - fix a deadlock on threaded build - update sequence number after a partial write completes This commit was SVN r7654. --- orte/mca/iof/base/iof_base_endpoint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orte/mca/iof/base/iof_base_endpoint.c b/orte/mca/iof/base/iof_base_endpoint.c index f05f425f60..5d1e8b376a 100644 --- a/orte/mca/iof/base/iof_base_endpoint.c +++ b/orte/mca/iof/base/iof_base_endpoint.c @@ -172,7 +172,10 @@ static void orte_iof_base_endpoint_write_handler(int sd, short flags, void *user break; } opal_list_remove_item(&endpoint->ep_frags, &frag->super); + OPAL_THREAD_UNLOCK(&orte_iof_base.iof_lock); + orte_iof_base_endpoint_ack(endpoint, frag->frag_hdr.hdr_msg.msg_seq + frag->frag_hdr.hdr_msg.msg_len); orte_iof_base_frag_ack(frag); + OPAL_THREAD_LOCK(&orte_iof_base.iof_lock); } /* is there anything left to write? */