]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: Prepare to protect against concurrent isolated cpuset change
authorFrederic Weisbecker <frederic@kernel.org>
Wed, 14 May 2025 14:47:19 +0000 (16:47 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Thu, 22 Jan 2026 17:26:55 +0000 (18:26 +0100)
commit608fedd2f303c30fdfbc948112c4281f46fc028a
tree76a12c750e3258122923240d0cbe49170a4dab59
parent9448598b22c50c8a5bb77a9103e2d49f134c9578
PCI: Prepare to protect against concurrent isolated cpuset change

HK_TYPE_DOMAIN will soon integrate cpuset isolated partitions and
therefore be made modifiable at runtime. Synchronize against the cpumask
update using RCU.

The RCU locked section includes both the housekeeping CPU target
election for the PCI probe work and the work enqueue.

This way the housekeeping update side will simply need to flush the
pending related works after updating the housekeeping mask in order to
make sure that no PCI work ever executes on an isolated CPU. This part
will be handled in a subsequent patch.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
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>
drivers/pci/pci-driver.c