mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
greybus: add WQ_PERCPU to alloc_workqueue users
This continues the effort to refactor workqueue APIs, which began with the introduction of new workqueues and a new alloc_workqueue flag in: commit128ea9f6cc("workqueue: Add system_percpu_wq and system_dfl_wq") commit930c2ea566("workqueue: Add new WQ_PERCPU flag") This change adds a new WQ_PERCPU flag to explicitly request alloc_workqueue() to be per-cpu when WQ_UNBOUND has not been specified. With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn’t explicitly specify WQ_UNBOUND must now use WQ_PERCPU. Once migration is complete, WQ_UNBOUND can be removed and unbound will become the implicit default. Suggested-by: Tejun Heo <[email protected]> Signed-off-by: Marco Crivellari <[email protected]> Reviewed-by: Johan Hovold <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
00a925eee8
commit
8c5d9488b9
1 file changed
+1
-1
@@ -1238,7 +1238,7 @@ int __init gb_operation_init(void)
|
||||
goto err_destroy_message_cache;
|
||||
|
||||
gb_operation_completion_wq = alloc_workqueue("greybus_completion",
|
||||
0, 0);
|
||||
WQ_PERCPU, 0);
|
||||
if (!gb_operation_completion_wq)
|
||||
goto err_destroy_operation_cache;
|
||||
|
||||
|
||||
Reference in new issue
Block a user