Thread (4 messages) 4 messages, 4 authors, 2015-03-05

Re: [PATCH -next] cpuset: initialize cpuset a bit early

From: Vladimir Davydov <hidden>
Date: 2015-03-04 10:40:36
Also in: lkml

On Wed, Mar 04, 2015 at 05:09:33PM +0800, Zefan Li wrote:
Now we call ss->bind() in cgroup_init(), so cgroup_init() will
call cpuset_bind() and then the latter will access top_cpuset's
cpumask, which is NULL, because cpuset_init() is called after
cgroup_init()

The simplest fix is to swap cgroup_init() and cpuset_init().

Cc: Vladimir Davydov <redacted>
Fixes: 295458e67284 ("cgroup: call cgroup_subsys->bind on cgroup subsys initialization")
Reported by: Ming Lei [off-list ref]
Signed-off-by: Zefan Li <redacted>
Acked-by: Vladimir Davydov <redacted>

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help