mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
fewer workqueues
This commit is contained in:
parent
d230eaea61
commit
e4d1c93d85
@ -106,8 +106,6 @@ extern struct workqueue_struct *system_highpri_wq;
|
||||
extern struct workqueue_struct *system_long_wq;
|
||||
extern struct workqueue_struct *system_unbound_wq;
|
||||
extern struct workqueue_struct *system_freezable_wq;
|
||||
extern struct workqueue_struct *system_power_efficient_wq;
|
||||
extern struct workqueue_struct *system_freezable_power_efficient_wq;
|
||||
|
||||
extern struct workqueue_struct *
|
||||
alloc_workqueue(const char *fmt, unsigned int flags,
|
||||
|
@ -293,8 +293,6 @@ struct workqueue_struct *system_highpri_wq;
|
||||
struct workqueue_struct *system_long_wq;
|
||||
struct workqueue_struct *system_unbound_wq;
|
||||
struct workqueue_struct *system_freezable_wq;
|
||||
struct workqueue_struct *system_power_efficient_wq;
|
||||
struct workqueue_struct *system_freezable_power_efficient_wq;
|
||||
|
||||
__attribute__((constructor(102)))
|
||||
static void wq_init(void)
|
||||
@ -306,13 +304,6 @@ static void wq_init(void)
|
||||
WQ_UNBOUND_MAX_ACTIVE);
|
||||
system_freezable_wq = alloc_workqueue("events_freezable",
|
||||
WQ_FREEZABLE, 0);
|
||||
system_power_efficient_wq = alloc_workqueue("events_power_efficient",
|
||||
WQ_POWER_EFFICIENT, 0);
|
||||
system_freezable_power_efficient_wq = alloc_workqueue("events_freezable_power_efficient",
|
||||
WQ_FREEZABLE | WQ_POWER_EFFICIENT,
|
||||
0);
|
||||
BUG_ON(!system_wq || !system_highpri_wq || !system_long_wq ||
|
||||
!system_unbound_wq || !system_freezable_wq ||
|
||||
!system_power_efficient_wq ||
|
||||
!system_freezable_power_efficient_wq);
|
||||
!system_unbound_wq || !system_freezable_wq);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user