From: Greg Kroah-Hartman Date: Thu, 22 Jan 2015 12:33:41 +0000 (+0800) Subject: greybus: ap.c: our workqueue should be ordered X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0b179ee782d80b31ccfe8cbcb1505cb703dfdbc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/ap.c b/drivers/staging/greybus/ap.c index e69566b119cf..3e4d4fbfd7fc 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;