linux/drivers/xen/xen-pciback
Bhaktipriya Shridhar 429eafe609 xen: xen-pciback: 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 xen_pcibk_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 thus the increase of local concurrency shouldn't
make any difference.

Since the work items could be pending, flush_work() has been used in
xen_pcibk_disconnect(). xen_pcibk_xenbus_remove() calls free_pdev()
which in turn calls xen_pcibk_disconnect() for every pdev to ensure that
there is no pending task while disconnecting the driver.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2016-07-06 10:34:48 +01:00
..
conf_space.c xen/pciback: Fix conf_space read/write overlap check. 2016-06-23 11:36:15 +01:00
conf_space.h xen-pciback: Add name prefix to global 'permissive' variable 2015-04-29 17:34:50 +01:00
conf_space_capability.c
conf_space_header.c xen-pciback: return proper values during BAR sizing 2016-06-24 10:53:03 +01:00
conf_space_quirks.c
conf_space_quirks.h
Makefile
passthrough.c xen/pciback: Don't deadlock when unbinding. 2014-12-04 12:41:58 +00:00
pci_stub.c xen/pciback: Don't print scary messages when unsupported by hypervisor. 2015-03-16 14:49:14 +00:00
pciback.h xen: xen-pciback: Remove create_workqueue 2016-07-06 10:34:48 +01:00
pciback_ops.c xen: xen-pciback: Remove create_workqueue 2016-07-06 10:34:48 +01:00
vpci.c xen/pciback: Don't deadlock when unbinding. 2014-12-04 12:41:58 +00:00
xenbus.c xen: xen-pciback: Remove create_workqueue 2016-07-06 10:34:48 +01:00