projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d465c
)
MINOR: tasklets: Don't attempt to add a tasklet in the list twice.
author
Olivier Houchard
<ohouchard@haproxy.com>
Tue, 17 Jul 2018 16:29:22 +0000
(18:29 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 19 Jul 2018 14:23:43 +0000
(16:23 +0200)
Don't try to add a tasklet to the run queue if it's already in there, or we
might get an infinite loop.
include/proto/task.h
patch
|
blob
|
history
diff --git
a/include/proto/task.h
b/include/proto/task.h
index
d1371f3
..
8aceee5
100644
(file)
--- a/
include/proto/task.h
+++ b/
include/proto/task.h
@@
-205,6
+205,8
@@
static inline struct task *task_unlink_rq(struct task *t)
static inline void tasklet_wakeup(struct tasklet *tl)
{
+ if (!LIST_ISEMPTY(&tl->list))
+ return;
LIST_ADDQ(&task_list[tid], &tl->list);
task_list_size[tid]++;
HA_ATOMIC_ADD(&tasks_run_queue, 1);