From: Julian Anastasov Date: Fri, 4 Mar 2011 10:20:35 +0000 (+0200) Subject: ipvs: reorganize tot_stats X-Git-Tag: v2.6.39-rc1~468^2~26^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a0751af09c3099cf2837c623ca5d0436317d02d;p=pandora-kernel.git ipvs: reorganize tot_stats The global tot_stats contains cpustats field just like the stats for dest and svc, so better use it to simplify the usage in estimation_timer. As tot_stats is registered as estimator we can remove the special ip_vs_read_cpu_stats call for tot_stats. Fix ip_vs_read_cpu_stats to be called under stats lock because it is still used as synchronization between estimation timer and user context (the stats readers). Also, make sure ip_vs_stats_percpu_show reads properly the u64 stats from user context. Signed-off-by: Julian Anastasov Eric Dumazet Signed-off-by: Simon Horman --- Reading git-diff-tree failed