Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+5 -1
+5 -1
block/blk-mq.c
··· 4257 4257 4258 4258 /* 4259 4259 * Rule out isolated CPUs from hctx->cpumask to avoid 4260 - * running block kworker on isolated CPUs 4260 + * running block kworker on isolated CPUs. 4261 + * FIXME: cpuset should propagate further changes to isolated CPUs 4262 + * here. 4261 4263 */ 4264 + rcu_read_lock(); 4262 4265 for_each_cpu(cpu, hctx->cpumask) { 4263 4266 if (cpu_is_isolated(cpu)) 4264 4267 cpumask_clear_cpu(cpu, hctx->cpumask); 4265 4268 } 4269 + rcu_read_unlock(); 4266 4270 4267 4271 /* 4268 4272 * Initialize batch roundrobin counts