PCI: Hide remove and rescan sysfs interfaces for SR-IOV virtual functions
authorJiang Liu <liuj97@gmail.com>
Fri, 31 May 2013 04:21:31 +0000 (12:21 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 5 Jun 2013 18:18:50 +0000 (12:18 -0600)
commitdfab88beda88d6c24111e5966b08ecf813c3a18a
treef3450d385cc3362201b3ac5a6c3d7cd8d8945886
parentfbf33f516bdbcc2ab1ba1e54dfb720b0cfaa6874
PCI: Hide remove and rescan sysfs interfaces for SR-IOV virtual functions

PCI devices for SR-IOV virtual functions should only be created/
destroyed by pci_enable_sriov()/pci_disable_sriov() because special
data structures are associated with SR-IOV virtual functions.
So hide hotplug related sysfs interfaces "remove" and "rescan" for
SR-IOV virtual functions, otherwise it may cause memory leakage
and other issues.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Donald Dutile <ddutile@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Ram Pai <linuxram@us.ibm.com>
drivers/pci/pci-sysfs.c
This page took 0.024432 seconds and 5 git commands to generate.