From e0b179ee782d80b31ccfe8cbcb1505cb703dfdbc Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman <greg@kroah.com> Date: Thu, 22 Jan 2015 20:33:41 +0800 Subject: [PATCH] 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> --- drivers/staging/greybus/ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/ap.c b/drivers/staging/greybus/ap.c index e69566b119cf7..3e4d4fbfd7fc6 100644 --- a/drivers/staging/greybus/ap.c +++ b/drivers/staging/greybus/ap.c @@ -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; -- 2.30.2