Paul Menage wrote:Actually I think we do not have to make it super strict "only rebuilt from that thread rule". I'd only off-load cpuset_write64(), update_flag() to the thread. It'd be nice to keep hotplug path clean synchronous. It's synchronous without cpusets so there is really no good reason when it needs to be async without them. And the toughest part is not even hotplug where lock nesting is pretty clear get_online_cpus() -> rebuild_sched_domains() -> cgroup_lock(); // Build cpumaps cpuset_callback_lock(); ... cpuset_callback_unlock(); cgroup_unlock(); partition_sched_domains() -> mutex_unlock(&sched_domains_mutex); // Rebuild sched domains mutex_unlock(&sched_domains_mutex); put_online_cpus() It's the other paths where cgroup_lock() is taken by cgroups before even calling into cpusets, like cgroup destroy case. So I think we should just off-load those. Max --
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Linus Torvalds | Re: Long delay in resume from RAM (Was Re: [patch 00/69] -stablereview) |
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
git: | |
| Andi Kleen | [PATCH RFC] [4/9] modpost: Fix format string warnings |
| Rick Jones | Re: Network latency regressions from 2.6.22 to 2.6.29 |
| Antonio Almeida | HTB accuracy for high speed |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
