memcg: add comments clarifying aspects of cache attribute propagation
[deliverable/linux.git] / mm / slab.c
index 4dcbf96a77b47987f5a7ac4b94e5767ca1b288db..e7667a3584bc664f023356fc58d67baa30959e69 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4099,6 +4099,7 @@ static int do_tune_cpucache(struct kmem_cache *cachep, int limit,
        if ((ret < 0) || !is_root_cache(cachep))
                return ret;
 
+       VM_BUG_ON(!mutex_is_locked(&slab_mutex));
        for_each_memcg_cache_index(i) {
                c = cache_from_memcg(cachep, i);
                if (c)
This page took 0.025865 seconds and 5 git commands to generate.