Thread (24 messages) 24 messages, 7 authors, 2012-07-30

Re: + hugetlb-cgroup-simplify-pre_destroy-callback.patch added to -mm tree

From: Kamezawa Hiroyuki <hidden>
Date: 2012-07-20 08:10:46
Also in: linux-mm

(2012/07/20 17:01), Michal Hocko wrote:
On Fri 20-07-12 10:20:29, KAMEZAWA Hiroyuki wrote:
[...]
quoted
Hmm, can't cgroup_lock() be implemented as


void cgroup_lock()
{
	get_online_cpus()
	lock_memory_hotplug()
	mutex_lock(&cgroup_mutex);
}
This is really ugly and it wouldn't help much anyway. Notifier which
takes the cgroup_lock is called when cpu_hotplug.lock is held already.
Hm ? IIUC, notifer will not work until put_online_cpu() is called.
You would need to call cgroup_lock() before taking the cpu_hotplug.lock
and remove it from notifiers. I think this should be doable but I didn't
have too much time to look deeper into it.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help