Browse Source

revert 16092: the test is already performed above

Samuel Thibault 9 years ago
parent
commit
105bef2aaa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/datawizard/memalloc.c

+ 2 - 1
src/datawizard/memalloc.c

@@ -994,7 +994,8 @@ void starpu_memchunk_tidy(unsigned node)
 				mc->clean = 1;
 				mc->clean = 1;
 				mc_clean_nb[node]++;
 				mc_clean_nb[node]++;
 			}
 			}
-			else if (handle->per_node[node].refcnt == 0) {
+			else
+			{
 				/* MC is dirty and nobody working on it, submit writeback */
 				/* MC is dirty and nobody working on it, submit writeback */
 
 
 				/* MC will be clean, consider it as such */
 				/* MC will be clean, consider it as such */