pci: prohibit storage probe delay of virtio block device

virtio block device has no async probe path, so needn't probe delay
this patch will reduce about 5s kernel booting time.

Signed-off-by: Xiaoming Gao <newtongao@tencent.com>
Signed-off-by: Liu Yu <allanyuliu@tencent.com>
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
Liu Yu 2016-11-18 10:04:46 +08:00 committed by Jianping Liu
parent 9501ffdbf1
commit 9cb9672adf
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ static int __pci_device_probe(struct pci_driver *drv, struct pci_dev *pci_dev)
id = pci_match_device(drv, pci_dev); id = pci_match_device(drv, pci_dev);
if (id) { if (id) {
if ((pci_dev->class>>16) == PCI_BASE_CLASS_STORAGE) if ((pci_dev->class>>16) == PCI_BASE_CLASS_STORAGE && pci_dev->vendor != 0x1af4)
storage_probe_delay(&pci_dev->dev); storage_probe_delay(&pci_dev->dev);
error = pci_call_probe(drv, pci_dev, id); error = pci_call_probe(drv, pci_dev, id);
} }