On Wed, Aug 7, 2013 at 6:49 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote: > On Tue, Aug 6, 2013 at 11:34 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote: >> On Tue, Aug 6, 2013 at 9:01 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote: >>> >>> Huh. I wish we didn't have virtfn_remove() at all. I wish the >>> normal device removal path, i.e., pci_stop_and_remove_bus_device(), >>> could deal with VFs directly. I don't know all the history there, >>> so maybe there's some reason that's not feasible. >> >> I had one draft version, but looks more confusing. > > please check attached that make pci_stop_and_remove_bus_device() > could be used with VF. If this solution could be used, we can revert commit dfab88beda88d6c24111e5966b08ecf813c3a18a Author: Jiang Liu <liuj97@xxxxxxxxx> Date: Fri May 31 12:21:31 2013 +0800 PCI: Hide remove and rescan sysfs interfaces for SR-IOV virtual functions > > It could replace > https://patchwork.kernel.org/patch/2834638/ > https://patchwork.kernel.org/patch/2834639/ > > Please choose one of the solutions. > > but we still need > https://patchwork.kernel.org/patch/2834640/ > as VFs that does not use ARI could be on other virtual bus. > so they will not be removed directly. -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html