]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tasks: make sure never to exceed max_processed
authorWilly Tarreau <w@1wt.eu>
Tue, 23 Jun 2020 09:32:35 +0000 (11:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Jun 2020 09:34:40 +0000 (11:34 +0200)
commit0c0c85ed9dab7d958712401631c750472eded707
treeb05df6a03284e37808b2ea90a009f8adb8f3ac39
parent38e8a1c7b8b5fc0512d82e19c2da2c296e1826b2
BUG/MINOR: tasks: make sure never to exceed max_processed

We want to be sure not to exceed max_processed. It can actually go
slightly negative due to the rounding applied to ratios, but we must
refrain from processing too many tasks if it's already low.

This became particularly relevant since recent commit 5c8be272c ("MEDIUM:
tasks: also process late wakeups in process_runnable_tasks()") which was
merged into 2.2-dev10. No backport is needed.
src/task.c