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:
parent
9501ffdbf1
commit
9cb9672adf
|
@ -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);
|
||||
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);
|
||||
error = pci_call_probe(drv, pci_dev, id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue