diff options
| author | Daniel Jordan <[email protected]> | 2019-09-05 21:40:21 -0400 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2019-09-13 21:15:39 +1000 |
| commit | b128a30409356df65f1a51cff3eb986cac8cfedc (patch) | |
| tree | cc469902f4279ac78d0cef0ea7bbcae71f662441 /include/linux | |
| parent | 007b3cf0af8cb7dc18828fbaf31c86d7d878f2c6 (diff) | |
padata: allocate workqueue internally
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.
Signed-off-by: Daniel Jordan <[email protected]>
Acked-by: Steffen Klassert <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/padata.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/padata.h b/include/linux/padata.h index 8da673861d99..839d9319920a 100644 --- a/include/linux/padata.h +++ b/include/linux/padata.h @@ -151,8 +151,7 @@ struct padata_instance { #define PADATA_INVALID 4 }; -extern struct padata_instance *padata_alloc_possible( - struct workqueue_struct *wq); +extern struct padata_instance *padata_alloc_possible(const char *name); extern void padata_free(struct padata_instance *pinst); extern int padata_do_parallel(struct padata_instance *pinst, struct padata_priv *padata, int cb_cpu); |