@@ -505,12 +505,16 @@ static struct kthread_worker *pwq_release_worker __ro_after_init;
505505
506506struct workqueue_struct * system_wq __ro_after_init ;
507507EXPORT_SYMBOL (system_wq );
508+ struct workqueue_struct * system_percpu_wq __ro_after_init ;
509+ EXPORT_SYMBOL (system_percpu_wq );
508510struct workqueue_struct * system_highpri_wq __ro_after_init ;
509511EXPORT_SYMBOL_GPL (system_highpri_wq );
510512struct workqueue_struct * system_long_wq __ro_after_init ;
511513EXPORT_SYMBOL_GPL (system_long_wq );
512514struct workqueue_struct * system_unbound_wq __ro_after_init ;
513515EXPORT_SYMBOL_GPL (system_unbound_wq );
516+ struct workqueue_struct * system_dfl_wq __ro_after_init ;
517+ EXPORT_SYMBOL_GPL (system_dfl_wq );
514518struct workqueue_struct * system_freezable_wq __ro_after_init ;
515519EXPORT_SYMBOL_GPL (system_freezable_wq );
516520struct workqueue_struct * system_power_efficient_wq __ro_after_init ;
@@ -7826,10 +7830,11 @@ void __init workqueue_init_early(void)
78267830 }
78277831
78287832 system_wq = alloc_workqueue ("events" , 0 , 0 );
7833+ system_percpu_wq = alloc_workqueue ("events" , 0 , 0 );
78297834 system_highpri_wq = alloc_workqueue ("events_highpri" , WQ_HIGHPRI , 0 );
78307835 system_long_wq = alloc_workqueue ("events_long" , 0 , 0 );
7831- system_unbound_wq = alloc_workqueue ("events_unbound" , WQ_UNBOUND ,
7832- WQ_MAX_ACTIVE );
7836+ system_unbound_wq = alloc_workqueue ("events_unbound" , WQ_UNBOUND , WQ_MAX_ACTIVE );
7837+ system_dfl_wq = alloc_workqueue ( "events_unbound" , WQ_UNBOUND , WQ_MAX_ACTIVE );
78337838 system_freezable_wq = alloc_workqueue ("events_freezable" ,
78347839 WQ_FREEZABLE , 0 );
78357840 system_power_efficient_wq = alloc_workqueue ("events_power_efficient" ,
@@ -7840,8 +7845,8 @@ void __init workqueue_init_early(void)
78407845 system_bh_wq = alloc_workqueue ("events_bh" , WQ_BH , 0 );
78417846 system_bh_highpri_wq = alloc_workqueue ("events_bh_highpri" ,
78427847 WQ_BH | WQ_HIGHPRI , 0 );
7843- BUG_ON (!system_wq || !system_highpri_wq || !system_long_wq ||
7844- !system_unbound_wq || !system_freezable_wq ||
7848+ BUG_ON (!system_wq || !system_percpu_wq || ! system_highpri_wq || !system_long_wq ||
7849+ !system_unbound_wq || !system_freezable_wq || ! system_dfl_wq ||
78457850 !system_power_efficient_wq ||
78467851 !system_freezable_power_efficient_wq ||
78477852 !system_bh_wq || !system_bh_highpri_wq );
0 commit comments