Move workqueue allocation inside of padata to prepare for further changes to how padata uses workqueues. Guarantees the workqueue is created with max_active=1, which padata relies on to work correctly. No functional change.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -151,8 +151,7 @@ struct padata_instance { · 150 unmodified lines | ||
| 151 | 151 | #define PADATA_INVALID 4 |
| 152 | 152 | }; |
| 153 | 153 | |
| 154 | −extern struct padata_instance *padata_alloc_possible( | |
| 155 | − struct workqueue_struct *wq); | |
| 154 | +extern struct padata_instance *padata_alloc_possible(const char *name); | |
| 156 | 155 | extern void padata_free(struct padata_instance *pinst); |
| 157 | 156 | extern int padata_do_parallel(struct padata_instance *pinst, |
| 158 | 157 | struct padata_priv *padata, int cb_cpu); |