projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09eeb76
)
BUG/MEDIUM: task: Don't forget to decrement max_processed after each task.
author
Olivier Houchard
<ohouchard@haproxy.com>
Mon, 28 May 2018 12:54:49 +0000
(14:54 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 28 May 2018 13:20:57 +0000
(15:20 +0200)
When the task list was introduced, we bogusly lost max_processed--, that means
we would execute as much tasks as present in the list, and we would never
set active_tasks_mask, so the thread would go to sleep even if more tasks were
to be executed.
1.9-dev only, no backport is needed.
src/task.c
patch
|
blob
|
history
diff --git
a/src/task.c
b/src/task.c
index
3275188
..
25ffe21
100644
(file)
--- a/
src/task.c
+++ b/
src/task.c
@@
-367,6
+367,7
@@
void process_runnable_tasks()
task_queue(t);
}
+ max_processed--;
if (max_processed <= 0) {
active_tasks_mask |= tid_bit;
activity[tid].long_rq++;