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. 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. Thanks Yinghai
Attachment:
virtfn_release.patch
Description: Binary data