greybus: ap.c: our workqueue should be ordered
authorGreg Kroah-Hartman <greg@kroah.com>
Thu, 22 Jan 2015 12:33:41 +0000 (20:33 +0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 23 Jan 2015 14:55:57 +0000 (22:55 +0800)
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>
drivers/staging/greybus/ap.c

index e69566b..3e4d4fb 100644 (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;