Procházet zdrojové kódy

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 před 14 roky
rodič
revize
9557513f74
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;