]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tasks: Don't consider we can wake task with tasklet_wakeup().
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 17 Apr 2019 17:11:58 +0000 (19:11 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 17 Apr 2019 17:28:01 +0000 (19:28 +0200)
In tasklet_wakeup(), don't bother checking if the tasklet is really a task,
calling tasklet_wakeup() with a task is invalid.

include/proto/task.h

index 1d4f911ef6841e3a5332ab9a2d8b508bac786c82..4de7de64807edb375adc7a837ce98a186f1ebbf1 100644 (file)
@@ -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);