From: Sven Wegener Date: Wed, 6 Feb 2008 04:00:10 +0000 (-0800) Subject: ipvs: Make wrr "no available servers" error message rate-limited X-Git-Tag: v2.6.25-rc1~518^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c1ca6e68a5d8d58776833b6496c0656a10be50c;p=platform%2Fkernel%2Flinux-3.10.git ipvs: Make wrr "no available servers" error message rate-limited No available servers is more an error message than something informational. It should also be rate-limited, else we're going to flood our logs on a busy director, if all real servers are out of order with a weight of zero. Signed-off-by: Sven Wegener Acked-by: Simon Horman Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ipvs/ip_vs_wrr.c b/net/ipv4/ipvs/ip_vs_wrr.c index 749fa04..85c680a 100644 --- a/net/ipv4/ipvs/ip_vs_wrr.c +++ b/net/ipv4/ipvs/ip_vs_wrr.c @@ -22,6 +22,7 @@ #include #include +#include #include @@ -169,7 +170,7 @@ ip_vs_wrr_schedule(struct ip_vs_service *svc, const struct sk_buff *skb) */ if (mark->cw == 0) { mark->cl = &svc->destinations; - IP_VS_INFO("ip_vs_wrr_schedule(): " + IP_VS_ERR_RL("ip_vs_wrr_schedule(): " "no available servers\n"); dest = NULL; goto out;