mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
PCI: vmd: Switch to pci_bus_find_emul_domain_nr()
The new common domain number allocator can replace the custom allocator in VMD. Beyond some code reuse benefits it does close a potential race whereby vmd_find_free_domain() collides with new PCI buses coming online with a conflicting domain number. Such a race has not been observed in practice, hence not tagging this change as a fix. As VMD uses pci_create_root_bus() rather than pci_alloc_host_bridge() + pci_scan_root_bus_bridge() it has no chance to set ->domain_nr in the bridge so needs to manage freeing the domain number on its own. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Szymon Durawa <szymon.durawa@linux.intel.com> Cc: Nirmal Patel <nirmal.patel@linux.intel.com> Link: https://patch.msgid.link/20251024224622.1470555-3-dan.j.williams@intel.com
This commit is contained in:
parent
bcce8c74f1
commit
b37b6095a9
1 changed files with 17 additions and 23 deletions
Loading…
Add table
Add a link
Reference in a new issue