diff --git a/mm/slab_common.c b/mm/slab_common.c index 318d2527bc0b0b773d8856ecd8cfcb934e3f6e2b..9e2111ae8e16eb792ff52a4ef35d05d024ac51d0 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -622,7 +622,7 @@ void memcg_create_kmem_cache(struct mem_cgroup *memcg, * The memory cgroup could have been offlined while the cache * creation work was pending. */ - if (memcg->kmem_state != KMEM_ONLINE || root_cache->memcg_params.dying) + if (memcg->kmem_state != KMEM_ONLINE) goto out_unlock; idx = memcg_cache_id(memcg);