Lines Matching refs:weight
12 * Julian Anastasov : Added the missing (dest->weight>0)
25 * (n.conns>n.weight AND
26 * there is a node m with m.conns<m.weight/2) then
175 /* select the first destination server, whose weight > 0 */
181 if ((atomic_read(&least->weight) > 0)
199 if ((loh * atomic_read(&dest->weight) >
200 doh * atomic_read(&least->weight))
208 "activeconns %d refcnt %d weight %d overhead %d\n",
214 atomic_read(&least->weight), loh);
229 /* select the first destination server, whose weight > 0 */
232 if (atomic_read(&most->weight) > 0) {
247 if ((moh * atomic_read(&dest->weight) <
248 doh * atomic_read(&most->weight))
249 && (atomic_read(&dest->weight) > 0)) {
256 "activeconns %d refcnt %d weight %d overhead %d\n",
261 atomic_read(&most->weight), moh);
564 * (dest overhead) / dest->weight
569 * if every weight is larger than zero.
571 * The server with weight=0 is quiesced and will not receive any
578 if (atomic_read(&dest->weight) > 0) {
597 if (loh * atomic_read(&dest->weight) >
598 doh * atomic_read(&least->weight)) {
605 "activeconns %d refcnt %d weight %d overhead %d\n",
610 atomic_read(&least->weight), loh);
623 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) {
628 < atomic_read(&d->weight)) {