Explorar o código

Do not forget to take back the spinlock if the transfer was successful, this
way we still detect whether when have to perform new callbacks/chained requests
that we submitted during the execution of the request.

Cédric Augonnet %!s(int64=14) %!d(string=hai) anos
pai
achega
9557513f74
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/datawizard/data_request.c

+ 1 - 0
src/datawizard/data_request.c

@@ -336,6 +336,7 @@ static int starpu_handle_data_request(starpu_data_request_t r, unsigned may_allo
 	}
 
 	/* the request has been handled */
+	_starpu_spin_lock(&r->lock);
 	starpu_handle_data_request_completion(r);
 
 	return 0;