]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: xenbus: Remove create_workqueue
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Tue, 31 May 2016 16:56:30 +0000 (22:26 +0530)
committerBob Liu <bob.liu@oracle.com>
Thu, 20 Oct 2016 07:57:31 +0000 (03:57 -0400)
commit6104257332d87fb9976cb7013bd14b3e87a70f49
treef38a0caa494a540e9f825506d8067bcbcfeb29f7
parenta3f95a385b418611901d2bf9facd05e0a1452d82
xen: xenbus: Remove create_workqueue

System workqueues have been able to handle high level of concurrency
for a long time now and there's no reason to use dedicated workqueues
just to gain concurrency.  Replace dedicated xenbus_frontend_wq with the
use of system_wq.

Unlike a dedicated per-cpu workqueue created with create_workqueue(),
system_wq allows multiple work items to overlap executions even on
the same CPU; however, a per-cpu workqueue doesn't have any CPU
locality or global ordering guarantees unless the target CPU is
explicitly specified and the increase of local concurrency shouldn't
make any difference.

In this case, there is only a single work item, increase of concurrency
level by switching to system_wq should not make any difference.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 5ee405d9d234ee5641741c07a654e4c6ba3e2a9d)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Orabug: 24820937
drivers/xen/xenbus/xenbus_probe_frontend.c