]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI: hv: Only queue new work items in hv_pci_devices_present() if necessary
authorDexuan Cui <decui@microsoft.com>
Fri, 8 Jun 2018 18:39:11 +0000 (15:39 -0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commitca038b7fbc369f3933784758183e7d3dfe5679d2
treeab83e2e9a84274e3a83f0df105255b998f07a94f
parent613e0695a5f73f0dde51cdc759c7f3d28e56d555
PCI: hv: Only queue new work items in hv_pci_devices_present() if necessary

BugLink: http://bugs.launchpad.net/bugs/1758378
If there is pending work in hv_pci_devices_present() we just need to add
the new dr entry into the dr_list. Add a check to detect pending work
items and update the code to skip queuing work if pending work items
are detected.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Jack Morgenstein <jackm@mellanox.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
(cherry picked from commit 948373b3ed1bcf05a237c24675b84804315aff14)
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/pci/host/pci-hyperv.c