Explorar o código

revert 16092: the test is already performed above

Samuel Thibault %!s(int64=9) %!d(string=hai) anos
pai
achega
105bef2aaa
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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_nb[node]++;
 			}
-			else if (handle->per_node[node].refcnt == 0) {
+			else
+			{
 				/* MC is dirty and nobody working on it, submit writeback */
 
 				/* MC will be clean, consider it as such */