@@ -505,12 +505,16 @@ static struct kthread_worker *pwq_release_worker __ro_after_init;
505
505
506
506
struct workqueue_struct * system_wq __ro_after_init ;
507
507
EXPORT_SYMBOL (system_wq );
508
+ struct workqueue_struct * system_percpu_wq __ro_after_init ;
509
+ EXPORT_SYMBOL (system_percpu_wq );
508
510
struct workqueue_struct * system_highpri_wq __ro_after_init ;
509
511
EXPORT_SYMBOL_GPL (system_highpri_wq );
510
512
struct workqueue_struct * system_long_wq __ro_after_init ;
511
513
EXPORT_SYMBOL_GPL (system_long_wq );
512
514
struct workqueue_struct * system_unbound_wq __ro_after_init ;
513
515
EXPORT_SYMBOL_GPL (system_unbound_wq );
516
+ struct workqueue_struct * system_dfl_wq __ro_after_init ;
517
+ EXPORT_SYMBOL_GPL (system_dfl_wq );
514
518
struct workqueue_struct * system_freezable_wq __ro_after_init ;
515
519
EXPORT_SYMBOL_GPL (system_freezable_wq );
516
520
struct workqueue_struct * system_power_efficient_wq __ro_after_init ;
@@ -7826,10 +7830,11 @@ void __init workqueue_init_early(void)
7826
7830
}
7827
7831
7828
7832
system_wq = alloc_workqueue ("events" , 0 , 0 );
7833
+ system_percpu_wq = alloc_workqueue ("events" , 0 , 0 );
7829
7834
system_highpri_wq = alloc_workqueue ("events_highpri" , WQ_HIGHPRI , 0 );
7830
7835
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 );
7833
7838
system_freezable_wq = alloc_workqueue ("events_freezable" ,
7834
7839
WQ_FREEZABLE , 0 );
7835
7840
system_power_efficient_wq = alloc_workqueue ("events_power_efficient" ,
@@ -7840,8 +7845,8 @@ void __init workqueue_init_early(void)
7840
7845
system_bh_wq = alloc_workqueue ("events_bh" , WQ_BH , 0 );
7841
7846
system_bh_highpri_wq = alloc_workqueue ("events_bh_highpri" ,
7842
7847
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 ||
7845
7850
!system_power_efficient_wq ||
7846
7851
!system_freezable_power_efficient_wq ||
7847
7852
!system_bh_wq || !system_bh_highpri_wq );
0 commit comments