From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756287AbbCBRNF (ORCPT ); Mon, 2 Mar 2015 12:13:05 -0500 Received: from mail-qc0-f179.google.com ([209.85.216.179]:37128 "EHLO mail-qc0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751692AbbCBRNC (ORCPT ); Mon, 2 Mar 2015 12:13:02 -0500 Date: Mon, 2 Mar 2015 12:12:57 -0500 From: Tejun Heo To: Vladimir Davydov Cc: Johannes Weiner , Michal Hocko , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cgroup: call cgroup_subsys->bind on cgroup subsys initialization Message-ID: <20150302171257.GL17694@htj.duckdns.org> References: <131af5f5ee0eec55d0f94a785db4be04baf01f51.1424356325.git.vdavydov@parallels.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <131af5f5ee0eec55d0f94a785db4be04baf01f51.1424356325.git.vdavydov@parallels.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 19, 2015 at 05:34:46PM +0300, Vladimir Davydov wrote: > Currently, we call cgroup_subsys->bind only on unmount, remount, and > when creating a new root on mount. Since the default hierarchy root is > created in cgroup_init, we will not call cgroup_subsys->bind if the > default hierarchy is freshly mounted. As a result, some controllers will > behave incorrectly (most notably, the "memory" controller will not > enable hierarchy support). Fix this by calling cgroup_subsys->bind right > after initializing a cgroup subsystem. > > Signed-off-by: Vladimir Davydov Applied to cgroup/for-4.0-fixes. Thanks. -- tejun