diff options
author | Andrew Morton <akpm@osdl.org> | 2006-01-18 00:58:01 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-18 01:46:49 -0500 |
commit | dbd2915ce87e811165da0717f8e159276ebb803e (patch) | |
tree | 81214471e4f7510d4231020cacf2a52cf43d7715 /net | |
parent | 7eb9b2f56c9812d03ac63031869bcc42151067b1 (diff) |
[IPV4]: RT_CACHE_STAT_INC() warning fix
BUG: using smp_processor_id() in preemptible [00000001] code: rpc.statd/2408
And it _is_ a bug, but I guess we don't care enough to add preempt_disable().
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f2e82afc15b3..d82c242ea704 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -241,7 +241,8 @@ static int rt_hash_log; | |||
241 | static unsigned int rt_hash_rnd; | 241 | static unsigned int rt_hash_rnd; |
242 | 242 | ||
243 | static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat); | 243 | static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat); |
244 | #define RT_CACHE_STAT_INC(field) (__get_cpu_var(rt_cache_stat).field++) | 244 | #define RT_CACHE_STAT_INC(field) \ |
245 | (per_cpu(rt_cache_stat, raw_smp_processor_id()).field++) | ||
245 | 246 | ||
246 | static int rt_intern_hash(unsigned hash, struct rtable *rth, | 247 | static int rt_intern_hash(unsigned hash, struct rtable *rth, |
247 | struct rtable **res); | 248 | struct rtable **res); |