Browse Source

follow-up r21101: From Lionel: component_fifo: do not keep the mutex when not needed anymore

Samuel Thibault 8 years ago
parent
commit
972573dd6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sched_policies/component_fifo.c

+ 1 - 1
src/sched_policies/component_fifo.c

@@ -133,9 +133,9 @@ static int fifo_push_local_task(struct starpu_sched_component * component, struc
 		STARPU_ASSERT(!isnan(fifo->exp_len));
 		STARPU_ASSERT(!isnan(fifo->exp_start));
 
+		STARPU_COMPONENT_MUTEX_UNLOCK(mutex);
 		if(!is_pushback)
 			component->can_pull(component);
-		STARPU_COMPONENT_MUTEX_UNLOCK(mutex);
 	}
 
 	return ret;