Commit 4fdccdfb authored by Christoph Lameter's avatar Christoph Lameter Committed by Pekka Enberg
Browse files

slub: Add statistics for this_cmpxchg_double failures

Add some statistics for debugging.

Signed-off-by: default avatarChristoph Lameter <>
Signed-off-by: default avatarPekka Enberg <>
parent 2fd66c51
......@@ -32,6 +32,7 @@ enum stat_item {
DEACTIVATE_TO_TAIL, /* Cpu slab was moved to the tail of partials */
DEACTIVATE_REMOTE_FREES,/* Slab contained remotely freed objects */
ORDER_FALLBACK, /* Number of times fallback was necessary */
CMPXCHG_DOUBLE_CPU_FAIL,/* Failure of this_cpu_cmpxchg_double */
struct kmem_cache_cpu {
......@@ -217,7 +217,7 @@ static inline void sysfs_slab_remove(struct kmem_cache *s)
static inline void stat(struct kmem_cache *s, enum stat_item si)
static inline void stat(const struct kmem_cache *s, enum stat_item si)
......@@ -1597,6 +1597,7 @@ static inline void note_cmpxchg_failure(const char *n,
printk("for unknown reason: actual=%lx was=%lx target=%lx\n",
actual_tid, tid, next_tid(tid));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment