From: Tejun Heo Subject: Re: [PATCH 2/8] cgroup: kill CSS_REMOVED Date: Wed, 31 Oct 2012 10:25:22 -0700 Message-ID: <20121031172522.GJ2945@htj.dyndns.org> References: <1351657365-25055-1-git-send-email-tj@kernel.org> <1351657365-25055-3-git-send-email-tj@kernel.org> <20121031153926.GC22809@dhcp22.suse.cz> <20121031165739.GE2945@htj.dyndns.org> <50915A87.4070504@parallels.com> <50915DB7.5020706@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ZIQBan/2FFbxWxcfORmr9gPEcekYznghZs3FdZ74T1w=; b=u46e/s3L0/lMl5qIet1XhWHRb6n8cmyVqr7FnFrx44DPuqbszIdBTHkzIY/+hD1Eta RoclzAbGSci2Gna3hkYByzfZR20VHFRFfAlkk0S6dhtthhjY23g6CgpjPYIvM6kodo+x k4XyyiFcEJ+SOUCuYPQDCO4ZYEfoidG/KxNQaMKsLrbjzNGN/1dAnDIwnzSA9mUi/yCP /I8pYUilQXf4pEhpvX85zPyjS06gUtgG3Kp9V+iCcFV2tO+i9+vbvGtxWnIf3a7cy3Iv LDKnJFesULu1OLg6QpXazM59QBQiTelLIvN0bgXWHRWE/n1fmS8NP/X+slA4h+2I0L7A Pzlg== Content-Disposition: inline In-Reply-To: <50915DB7.5020706-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Glauber Costa Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michal Hocko , hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Hello, On Wed, Oct 31, 2012 at 09:19:51PM +0400, Glauber Costa wrote: > I don't see post_create failing as a huge problem. The natural > synchronization point would be "right after post_create" - then you can > definitely tell that it is online. Although this can be viewed a bit as > "exposing internals", creating is different then destroying: When you > create, you may not have all data yet. When destroying, you do - and > want to get rid of it. So this kind of bootstrapping is pretty standard > and common. More proper names for these callbacks would be, ->allocate() ->online() ->offline() ->free() And I may rename them. I don't wanna make ->online() failable. Why can't you just allocate everything from ->allocate() and use it from ->online()? Thanks. -- tejun