]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ipvs: remove _bh from percpu stats reading
authorJulian Anastasov <ja@ssi.bg>
Fri, 4 Mar 2011 10:28:20 +0000 (12:28 +0200)
committerSimon Horman <horms@verge.net.au>
Tue, 15 Mar 2011 00:36:48 +0000 (09:36 +0900)
  ip_vs_read_cpu_stats is called only from timer, so
no need for _bh locks.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_est.c

index f560a05c965a61c528f5d8e12fac304d37b70492..88bd71647bf521fdd35b0288be8845fd554b7691 100644 (file)
@@ -69,10 +69,10 @@ static void ip_vs_read_cpu_stats(struct ip_vs_stats_user *sum,
                        sum->inpkts += s->ustats.inpkts;
                        sum->outpkts += s->ustats.outpkts;
                        do {
-                               start = u64_stats_fetch_begin_bh(&s->syncp);
+                               start = u64_stats_fetch_begin(&s->syncp);
                                inbytes = s->ustats.inbytes;
                                outbytes = s->ustats.outbytes;
-                       } while (u64_stats_fetch_retry_bh(&s->syncp, start));
+                       } while (u64_stats_fetch_retry(&s->syncp, start));
                        sum->inbytes += inbytes;
                        sum->outbytes += outbytes;
                } else {
@@ -80,10 +80,10 @@ static void ip_vs_read_cpu_stats(struct ip_vs_stats_user *sum,
                        sum->inpkts = s->ustats.inpkts;
                        sum->outpkts = s->ustats.outpkts;
                        do {
-                               start = u64_stats_fetch_begin_bh(&s->syncp);
+                               start = u64_stats_fetch_begin(&s->syncp);
                                sum->inbytes = s->ustats.inbytes;
                                sum->outbytes = s->ustats.outbytes;
-                       } while (u64_stats_fetch_retry_bh(&s->syncp, start));
+                       } while (u64_stats_fetch_retry(&s->syncp, start));
                }
        }
 }