PCI: Restrict probe functions to housekeeping CPUs
authorAlex Belits <abelits@marvell.com>
Thu, 25 Jun 2020 22:34:42 +0000 (18:34 -0400)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 8 Jul 2020 09:39:01 +0000 (11:39 +0200)
commit69a18b18699b59654333651d95f8ca09d01048f8
tree931bd9044eb706a10d06498a878ff10be4ef7f26
parent1abdfe706a579a702799fce465bceb9fb01d407c
PCI: Restrict probe functions to housekeeping CPUs

pci_call_probe() prevents the nesting of work_on_cpu() for a scenario
where a VF device is probed from work_on_cpu() of the PF.

Replace the cpumask used in pci_call_probe() from all online CPUs to only
housekeeping CPUs. This is to ensure that there are no additional latency
overheads caused due to the pinning of jobs on isolated CPUs.

Signed-off-by: Alex Belits <abelits@marvell.com>
Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lkml.kernel.org/r/20200625223443.2684-3-nitesh@redhat.com
drivers/pci/pci-driver.c