From 0c7a4b6371160a8fb69d2e284f0a402c7e06d99f Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 17 Apr 2019 19:14:56 +0200 Subject: [PATCH] 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. --- src/task.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/task.c b/src/task.c index a9c501abbe..abcb13baa0 100644 --- a/src/task.c +++ b/src/task.c @@ -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); } -- 2.39.5