projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18a85fe
)
BUG/MEDIUM: tasklets: Add the thread as active when waking a tasklet.
author
Olivier Houchard
<ohouchard@haproxy.com>
Fri, 17 Aug 2018 16:57:51 +0000
(18:57 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 21 Aug 2018 16:06:33 +0000
(18:06 +0200)
Set the flag for the current thread in active_threads_mask when waking a
tasklet, or we will never run it if no tasks are available.
This is 1.9-specific, no backport is needed.
include/proto/task.h
patch
|
blob
|
history
diff --git
a/include/proto/task.h
b/include/proto/task.h
index
13398c5
..
eef4ded
100644
(file)
--- a/
include/proto/task.h
+++ b/
include/proto/task.h
@@
-226,6
+226,7
@@
static inline void tasklet_wakeup(struct tasklet *tl)
return;
LIST_ADDQ(&task_list[tid], &tl->list);
task_list_size[tid]++;
+ HA_ATOMIC_OR(&active_tasks_mask, tid_bit);
HA_ATOMIC_ADD(&tasks_run_queue, 1);
}