commit | 218859ad6cacf0fbd812293eefc51b7877f115b3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Mar 21 11:53:09 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sat Mar 21 11:53:09 2009 +0100 |
tree | 48c675996e7928324c70173777972593da980d61 | |
parent | e35c94a74894d1d4789fe193b6690a90e9ab24af [diff] |
[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.