MINOR: tasks: Don't set the TASK_RUNNING flag when adding in the tasklet list.

Now that TASK_QUEUED is enforced, there's no need to set TASK_RUNNING when
removing the task from the runqueue to add it to the tasklet list. The flag
will only be set right before we run the task.
This commit is contained in:
Olivier Houchard 2019-04-17 19:14:56 +02:00 committed by Olivier Houchard
parent 4a1be0c6d6
commit 0c7a4b6371
1 changed files with 0 additions and 3 deletions

View File

@ -342,9 +342,6 @@ void process_runnable_tasks()
}
#endif
/* Make sure nobody re-adds the task in the runqueue */
_HA_ATOMIC_OR(&t->state, TASK_RUNNING);
/* And add it to the local task list */
task_insert_into_tasklet_list(t);
}