From: Olivier Houchard Date: Wed, 17 Apr 2019 17:11:58 +0000 (+0200) Subject: MINOR: tasks: Don't consider we can wake task with tasklet_wakeup(). X-Git-Tag: v2.0-dev3~240 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c964f7b42fb3da0c22cbf42c64996fd7b69327e;p=thirdparty%2Fhaproxy.git MINOR: tasks: Don't consider we can wake task with tasklet_wakeup(). In tasklet_wakeup(), don't bother checking if the tasklet is really a task, calling tasklet_wakeup() with a task is invalid. --- diff --git a/include/proto/task.h b/include/proto/task.h index 1d4f911ef6..4de7de6480 100644 --- a/include/proto/task.h +++ b/include/proto/task.h @@ -238,10 +238,6 @@ static inline struct task *task_unlink_rq(struct task *t) static inline void tasklet_wakeup(struct tasklet *tl) { - if (!TASK_IS_TASKLET(tl)) { - task_insert_into_tasklet_list((struct task *)tl); - return; - } if (!LIST_ISEMPTY(&tl->list)) return; LIST_ADDQ(&task_per_thread[tid].task_list, &tl->list);