Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1411296
| From | David Vrabel <david.vrabel@citrix.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [Xen-devel] [PATCH v2] xen: xen-pciback: Remove create_workqueue |
| Date | 2016-06-01 17:00 +0200 |
| Message-ID | <rFfMK-1eo-25@gated-at.bofh.it> (permalink) |
| References | <rFfa2-11j-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 01/06/16 15:15, Bhaktipriya Shridhar wrote: > 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> > --- > Changes in v2: > -Changed cancel_work_sync to flush_work > -Changed commit description > > Feedback to update a comment was received in v1 from David Vrabel. It has not > be included in v2 since some clarification was required. Will include it in > v3 once the details about the content and the placement of the comment are > received. The comment needed updating iff this continued to use cancel_work_sync() but since it's using flush_work() the comment is fine. David
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] xen: xen-pciback: Remove create_workqueue Bhaktipriya Shridhar <bhaktipriya96@gmail.com> - 2016-06-01 16:20 +0200 Re: [Xen-devel] [PATCH v2] xen: xen-pciback: Remove create_workqueue David Vrabel <david.vrabel@citrix.com> - 2016-06-01 17:00 +0200 Re: [PATCH v2] xen: xen-pciback: Remove create_workqueue Tejun Heo <tj@kernel.org> - 2016-06-01 17:50 +0200
csiph-web