From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933135AbbCDKkg (ORCPT ); Wed, 4 Mar 2015 05:40:36 -0500 Received: from mx2.parallels.com ([199.115.105.18]:48525 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758491AbbCDKkf (ORCPT ); Wed, 4 Mar 2015 05:40:35 -0500 Date: Wed, 4 Mar 2015 13:40:27 +0300 From: Vladimir Davydov To: Zefan Li CC: Tejun Heo , LKML , Cgroups , Ming Lei Subject: Re: [PATCH -next] cpuset: initialize cpuset a bit early Message-ID: <20150304104027.GC18131@esperanza> References: <54F6CBCD.50009@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <54F6CBCD.50009@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Fixes: 295458e67284 ("cgroup: call cgroup_subsys->bind on cgroup subsys initialization") > Reported by: Ming Lei > Signed-off-by: Zefan Li Acked-by: Vladimir Davydov Thanks!