mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-01 15:31:18 +01:00
BUG/MEDIUM: tasks: Decrement rqueue_size at the right time.
We need to decrement requeue_size when we remove a task form rqueue_local, not when we remove if from the task list, or we'd also decrement it for any tasklet, that was never in the rqueue in the first place.
This commit is contained in:
parent
9a77186cb0
commit
e85ee7b663
@ -333,6 +333,7 @@ void process_runnable_tasks()
|
||||
|
||||
/* detach the task from the queue */
|
||||
__task_unlink_rq(t);
|
||||
rqueue_size[tid]--;
|
||||
/* And add it to the local task list */
|
||||
task_insert_into_tasklet_list(t);
|
||||
}
|
||||
@ -349,7 +350,6 @@ void process_runnable_tasks()
|
||||
|
||||
ctx = t->context;
|
||||
process = t->process;
|
||||
rqueue_size[tid]--;
|
||||
t->calls++;
|
||||
curr_task = (struct task *)t;
|
||||
if (likely(process == process_stream))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user