]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] sched: don't leave 3 lasts tasks unprocessed when niced tasks are present
authorWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 10:53:09 +0000 (11:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 10:53:09 +0000 (11:53 +0100)
commit218859ad6cacf0fbd812293eefc51b7877f115b3
tree48c675996e7928324c70173777972593da980d61
parente35c94a74894d1d4789fe193b6690a90e9ab24af
[BUG] sched: don't leave 3 lasts tasks unprocessed when niced tasks are present

When there are niced tasks, we would only process #tasks/4 per
turn, without taking care of running #tasks when #tasks was below
4, leaving those tasks waiting for a few other tasks to push them.

The fix simply consists in checking (#tasks+3)/4.
src/task.c