Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (2 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/mm/memcontrol.c

    r31662 r31885  
    21532153};
    21542154
     2155static struct workqueue_struct *memcg_kmem_cache_create_wq;
     2156
    21552157static void memcg_kmem_cache_create_func(struct work_struct *w)
    21562158{
     
    21842186        INIT_WORK(&cw->work, memcg_kmem_cache_create_func);
    21852187
    2186         schedule_work(&cw->work);
     2188        queue_work(memcg_kmem_cache_create_wq, &cw->work);
    21872189}
    21882190
     
    57875789        int cpu, node;
    57885790
     5791#ifndef CONFIG_SLOB
     5792        /*
     5793         * Kmem cache creation is mostly done with the slab_mutex held,
     5794         * so use a special workqueue to avoid stalling all worker
     5795         * threads in case lots of cgroups are created simultaneously.
     5796         */
     5797        memcg_kmem_cache_create_wq =
     5798                alloc_ordered_workqueue("memcg_kmem_cache_create", 0);
     5799        BUG_ON(!memcg_kmem_cache_create_wq);
     5800#endif
     5801
    57895802        hotcpu_notifier(memcg_cpu_hotplug_callback, 0);
    57905803
Note: See TracChangeset for help on using the changeset viewer.