RE: [PATCH v2 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-05 Thread Dexuan Cui
> From: Michael Kelley (EOSG) > Sent: Monday, March 5, 2018 15:48 > > @@ -1756,11 +1757,23 @@ static void hv_pci_devices_present(struct > hv_pcibus_device > > *hbus, > > } > > > > spin_lock_irqsave(>device_list_lock, flags); > > + > > + /* > > +* If pending_dr is true, we have

RE: [PATCH v2 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-05 Thread Dexuan Cui
> From: Michael Kelley (EOSG) > Sent: Monday, March 5, 2018 15:48 > > @@ -1756,11 +1757,23 @@ static void hv_pci_devices_present(struct > hv_pcibus_device > > *hbus, > > } > > > > spin_lock_irqsave(>device_list_lock, flags); > > + > > + /* > > +* If pending_dr is true, we have

RE: [PATCH v2 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-05 Thread Michael Kelley (EOSG)
> <de...@microsoft.com>; Jack > Morgenstein <ja...@mellanox.com>; sta...@vger.kernel.org > Subject: [PATCH v2 5/6] PCI: hv: hv_pci_devices_present(): only queue a new > work when > necessary > > If there is a pending work, we just need to add the new dr

RE: [PATCH v2 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-05 Thread Michael Kelley (EOSG)
er.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang > ; vkuzn...@redhat.com; marcelo.ce...@canonical.com; > Michael > Kelley (EOSG) ; Dexuan Cui > ; Jack > Morgenstein ; sta...@vger.kernel.org > Subject: [PATCH v2 5/6] PCI: hv: hv_pci_devices_pres

[PATCH v2 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-05 Thread Dexuan Cui
If there is a pending work, we just need to add the new dr into the dr_list. This is suggested by Michael Kelley. Signed-off-by: Dexuan Cui Cc: Vitaly Kuznetsov Cc: Jack Morgenstein Cc: sta...@vger.kernel.org Cc: Stephen Hemminger

[PATCH v2 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-05 Thread Dexuan Cui
If there is a pending work, we just need to add the new dr into the dr_list. This is suggested by Michael Kelley. Signed-off-by: Dexuan Cui Cc: Vitaly Kuznetsov Cc: Jack Morgenstein Cc: sta...@vger.kernel.org Cc: Stephen Hemminger Cc: K. Y. Srinivasan Cc: Michael Kelley (EOSG) ---