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

2015-03-05 Thread Tejun Heo
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

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

2015-03-05 Thread Tejun Heo
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

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

2015-03-04 Thread Vladimir Davydov
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

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

2015-03-04 Thread Ming Lei
On Wed, Mar 4, 2015 at 5:09 PM, 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

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

2015-03-04 Thread Zefan Li
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 Fixes:

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

2015-03-04 Thread Ming Lei
On Wed, Mar 4, 2015 at 5:09 PM, Zefan Li lize...@huawei.com 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

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

2015-03-04 Thread Zefan Li
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

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

2015-03-04 Thread Vladimir Davydov
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