fixed a deadlock problem
authorYanhua Sun <sun51@illinois.edu>
Tue, 20 Sep 2011 05:02:54 +0000 (00:02 -0500)
committerYanhua Sun <sun51@illinois.edu>
Tue, 20 Sep 2011 05:02:54 +0000 (00:02 -0500)
src/arch/gemini_gni/machine.c

index 2715807cf4950ad3e83c03a87dbd31e3b530322d..625d2d306da471d9cb01485fc5d5edc129c2329d 100644 (file)
@@ -669,10 +669,9 @@ static gni_return_t send_smsg_message(int destNode, void *header, int size_heade
 #endif
             return status;
         }
-    }else {
-        if(inbuff ==0)
-            delay_send_small_msg(msg, size, destNode, tag);
     }
+    if(inbuff ==0)
+        delay_send_small_msg(msg, size, destNode, tag);
     return status;
 }