|
@@ -224,7 +224,11 @@ static inline void memcg_propagate_slab_attrs(struct kmem_cache *s) { }
|
|
static inline void stat(const struct kmem_cache *s, enum stat_item si)
|
|
static inline void stat(const struct kmem_cache *s, enum stat_item si)
|
|
{
|
|
{
|
|
#ifdef CONFIG_SLUB_STATS
|
|
#ifdef CONFIG_SLUB_STATS
|
|
- __this_cpu_inc(s->cpu_slab->stat[si]);
|
|
|
|
|
|
+ /*
|
|
|
|
+ * The rmw is racy on a preemptible kernel but this is acceptable, so
|
|
|
|
+ * avoid this_cpu_add()'s irq-disable overhead.
|
|
|
|
+ */
|
|
|
|
+ raw_cpu_inc(s->cpu_slab->stat[si]);
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
|
|
|