RE: [PATCH 2/3] PCI: hv: serialize the present/eject work items

2018-03-04 Thread Dexuan Cui
> From: Michael Kelley (EOSG) > Sent: Saturday, March 3, 2018 08:10 > > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Dexuan Cui > > Sent: Friday, March 2, 2018 4:21 PM > > When we hot-remove the device, we first receive a PCI_EJECT message and > > then receive a PCI

RE: [PATCH 2/3] PCI: hv: serialize the present/eject work items

2018-03-03 Thread Michael Kelley (EOSG)
kernel.org; driverdev-devel@linuxdriverproject.org; > Haiyang Zhang > ; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; > vkuzn...@redhat.com; marcelo.ce...@canonical.com; Dexuan Cui > ; > Jack Morgenstein ; sta...@vger.kernel.org > Subject: [PATCH 2/3] PCI: hv: serialize the

[PATCH 2/3] PCI: hv: serialize the present/eject work items

2018-03-02 Thread Dexuan Cui
When we hot-remove the device, we first receive a PCI_EJECT message and then receive a PCI_BUS_RELATIONS message with bus_rel->device_count == 0. The first message is offloaded to hv_eject_device_work(), and the second is offloaded to pci_devices_present_work(). Both the paths can be running list_