Commit b4bd734e authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: operation: fix operation ordering

Make the operation work queue single threaded.

The operation work queue was meant to be single threaded, but due to a
missing flag instead allowed one active task per CPU, something which
could lead to requests being processed out of order on SMP systems.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Tested-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 583cbf50
...@@ -1043,7 +1043,8 @@ int __init gb_operation_init(void) ...@@ -1043,7 +1043,8 @@ int __init gb_operation_init(void)
if (!gb_operation_cache) if (!gb_operation_cache)
goto err_destroy_message_cache; goto err_destroy_message_cache;
gb_operation_workqueue = alloc_workqueue("greybus_operation", 0, 1); gb_operation_workqueue = alloc_workqueue("greybus_operation",
WQ_UNBOUND, 1);
if (!gb_operation_workqueue) if (!gb_operation_workqueue)
goto err_operation; goto err_operation;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment