upgrade to linux 2.6.10-1.12_FC2
[linux-2.6.git] / include / net / neighbour.h
index 414002c..4c9ddae 100644 (file)
@@ -112,7 +112,11 @@ struct neigh_statistics
 };
 
 #define NEIGH_CACHE_STAT_INC(tbl, field)                               \
-               (per_cpu_ptr((tbl)->stats, smp_processor_id())->field++)
+       do {                                                            \
+               preempt_disable();                                      \
+               (per_cpu_ptr((tbl)->stats, smp_processor_id())->field)++; \
+               preempt_enable();                                       \
+       } while (0)
 
 struct neighbour
 {