Explorar o código

Revert "data_request: Fix memory leak on prefetch getting ENOMEM"

This reverts commit b54df49e0a3969474b4e0d54b9d886a345a6d4ab.
Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
b410c7ed8c
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      src/datawizard/data_request.c

+ 0 - 5
src/datawizard/data_request.c

@@ -556,11 +556,6 @@ static int starpu_handle_data_request(struct _starpu_data_request *r, unsigned m
 	{
 		/* If there was not enough memory, we will try to redo the
 		 * request later. */
-
-		if (r->prefetch > STARPU_FETCH)
-			/* Drop ref until next try */
-			dst_replicate->refcnt--;
-
 		_starpu_spin_unlock(&handle->header_lock);
 		return -ENOMEM;
 	}