]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: Flush PCI probe workqueue on cpuset isolated partition change
authorFrederic Weisbecker <frederic@kernel.org>
Tue, 30 Sep 2025 13:21:33 +0000 (15:21 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Feb 2026 14:23:34 +0000 (15:23 +0100)
commit29b306c44eb5eefdfa02d6ba1205f479f82fb088
treeb8122840ace41270d158f23cadc6e22a466f8b87
parentce84ad5e994aea5d41ff47135a71439ad4f54005
PCI: Flush PCI probe workqueue on cpuset isolated partition change

The HK_TYPE_DOMAIN housekeeping cpumask is now modifiable at runtime. In
order to synchronize against PCI probe works and make sure that no
asynchronous probing is still pending or executing on a newly isolated
CPU, the housekeeping subsystem must flush the PCI probe works.

However the PCI probe works can't be flushed easily since they are
queued to the main per-CPU workqueue pool.

Solve this with creating a PCI probe-specific pool and provide and use
the appropriate flushing API.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Marco Crivellari <marco.crivellari@suse.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Waiman Long <longman@redhat.com>
Cc: linux-pci@vger.kernel.org
drivers/pci/pci-driver.c
include/linux/pci.h
kernel/sched/isolation.c