summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slab_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c
index 62733bbcc971..afdd73553b88 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -640,7 +640,7 @@ void memcg_create_kmem_cache(struct mem_cgroup *memcg,
640 * The memory cgroup could have been offlined while the cache 640 * The memory cgroup could have been offlined while the cache
641 * creation work was pending. 641 * creation work was pending.
642 */ 642 */
643 if (memcg->kmem_state != KMEM_ONLINE || root_cache->memcg_params.dying) 643 if (memcg->kmem_state != KMEM_ONLINE)
644 goto out_unlock; 644 goto out_unlock;
645 645
646 idx = memcg_cache_id(memcg); 646 idx = memcg_cache_id(memcg);