]> git.ipfire.org Git - thirdparty/linux.git/commit
block: Protect against concurrent isolated cpuset change
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 15 May 2025 14:50:04 +0000 (16:50 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Feb 2026 14:23:33 +0000 (15:23 +0100)
commit53c2f9d1b1151a853542b224d78169f68f919ef1
tree7050fdd71f94ef6f47ac99c67ed9f3c89a5aef35
parent662ff1aac85480690b16fc429bef7114120cdfdd
block: Protect against concurrent isolated cpuset change

The block subsystem prevents running the workqueue to isolated CPUs,
including those defined by cpuset isolated partitions. Since
HK_TYPE_DOMAIN will soon contain both and be subject to runtime
modifications, synchronize against housekeeping using the relevant lock.

For full support of cpuset changes, the block subsystem may need to
propagate changes to isolated cpumask through the workqueue in the
future.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Jens Axboe <axboe@kernel.dk>
Cc: Jens Axboe <axboe@kernel.dk>
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-block@vger.kernel.org
block/blk-mq.c