Prechádzať 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 14 rokov pred
rodič
commit
9557513f74
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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;