Lines Matching refs:weight
14 * Julian Anastasov : Added the missing (dest->weight>0)
27 * (n.conns>n.weight AND
28 * there is a node m with m.conns<m.weight/2) then
181 /* select the first destination server, whose weight > 0 */
187 if ((atomic_read(&least->weight) > 0)
206 if ((loh * atomic_read(&dest->weight) >
207 doh * atomic_read(&least->weight))
216 "activeconns %d refcnt %d weight %d overhead %d\n",
220 atomic_read(&least->weight), loh);
236 /* select the first destination server, whose weight > 0 */
239 if (atomic_read(&most->weight) > 0) {
255 if ((moh * atomic_read(&dest->weight) <
256 doh * atomic_read(&most->weight))
257 && (atomic_read(&dest->weight) > 0)) {
265 "activeconns %d refcnt %d weight %d overhead %d\n",
269 atomic_read(&most->weight), moh);
686 * (dest overhead) / dest->weight
691 * if every weight is larger than zero.
693 * The server with weight=0 is quiesced and will not receive any
700 if (atomic_read(&dest->weight) > 0) {
719 if (loh * atomic_read(&dest->weight) >
720 doh * atomic_read(&least->weight)) {
727 "activeconns %d refcnt %d weight %d overhead %d\n",
731 atomic_read(&least->weight), loh);
744 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) {
749 < atomic_read(&d->weight)) {