greybus: ap.c: our workqueue should be ordered

SVC messages come in in an "order", so don't mess them up by processing
them out of order.  Fix this by making our work queue ordered, which
should keep everything in line.

Reported-by: Perry Hung <perry@leaflabs.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Greg Kroah-Hartman 2015-01-22 20:33:41 +08:00
parent 58b978c48b
commit e0b179ee78

View file

@ -356,7 +356,7 @@ EXPORT_SYMBOL_GPL(greybus_svc_in);
int gb_ap_init(void)
{
ap_workqueue = alloc_workqueue("greybus_ap", 0, 1);
ap_workqueue = alloc_ordered_workqueue("greybus_ap", 0);
if (!ap_workqueue)
return -ENOMEM;