Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752824Ab2KTIr1 (ORCPT ); Tue, 20 Nov 2012 03:47:27 -0500 Received: from hotel311.server4you.de ([85.25.146.15]:51288 "EHLO hotel311.server4you.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953Ab2KTIrZ (ORCPT ); Tue, 20 Nov 2012 03:47:25 -0500 Message-ID: <50AB439C.4090703@monom.org> Date: Tue, 20 Nov 2012 09:47:24 +0100 From: Daniel Wagner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Tejun Heo CC: serge.hallyn@canonical.com, ebiederm@xmission.com, nhorman@tuxdriver.com, tgraf@suug.ch, davem@davemloft.net, lizefan@huawei.com, cgroups@vger.kernel.org, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 5/7] netprio_cgroup: use cgroup->id instead of cgroup_netprio_state->prioidx References: <1353400211-5182-1-git-send-email-tj@kernel.org> <1353400211-5182-6-git-send-email-tj@kernel.org> In-Reply-To: <1353400211-5182-6-git-send-email-tj@kernel.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 810 Lines: 20 On 20.11.2012 09:30, Tejun Heo wrote: > With priomap expansion no longer depending on knowing max id > allocated, netprio_cgroup can use cgroup->id insted of cs->prioidx. > Drop prioidx alloc/free logic and convert all uses to cgroup->id. > > * In cgrp_css_alloc(), parent->id test is moved above @cs allocation > to simplify error path. > > * In cgrp_css_free(), @cs assignment is made initialization. > > Signed-off-by: Tejun Heo > Acked-by: Neil Horman Tested and Acked-by: Daniel Wagner -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/