• Rusty Russell's avatar
    [PATCH] Hotplug CPUs: Workqueue Changes · 6bcaa29d
    Rusty Russell authored
    Workqueues need to bring up/destroy the per-cpu thread on cpu up/down.
    
    1) Add a global list of workqueues, and keep the name in the structure
       (to name the newly created thread).
    
    2) Remove BUG_ON in run_workqueue, since thread is dragged off CPU when
       it goes down.
    
    3) Lock out cpu up/down in flush_workqueue, create_workqueue and
       destroy_workqueue.
    
    4) Add notifier to add/destroy workqueue threads, and take over work.
    6bcaa29d
workqueue.c 11.4 KB