Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932211AbWHQMQ7 (ORCPT ); Thu, 17 Aug 2006 08:16:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932236AbWHQMQ7 (ORCPT ); Thu, 17 Aug 2006 08:16:59 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:12425 "EHLO e36.co.us.ibm.com") by vger.kernel.org with ESMTP id S932211AbWHQMQ5 (ORCPT ); Thu, 17 Aug 2006 08:16:57 -0400 Date: Thu, 17 Aug 2006 16:39:40 +0530 From: Srivatsa Vaddagiri To: Kirill Korotaev Cc: Andrew Morton , Rik van Riel , ckrm-tech@lists.sourceforge.net, Linux Kernel Mailing List , Andi Kleen , Christoph Hellwig , Andrey Savochkin , devel@openvz.org, hugh@veritas.com, Ingo Molnar , Alan Cox , Pavel Emelianov Subject: Re: [ckrm-tech] [RFC][PATCH 4/7] UBC: syscalls (user interface) Message-ID: <20060817110940.GC19127@in.ibm.com> Reply-To: vatsa@in.ibm.com References: <44E33893.6020700@sw.ru> <44E33C3F.3010509@sw.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44E33C3F.3010509@sw.ru> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 30 On Wed, Aug 16, 2006 at 07:39:43PM +0400, Kirill Korotaev wrote: > +/* > + * The setbeanlimit syscall > + */ > +asmlinkage long sys_setublimit(uid_t uid, unsigned long resource, > + unsigned long *limits) > +{ [snip] > + spin_lock_irqsave(&ub->ub_lock, flags); > + ub->ub_parms[resource].barrier = new_limits[0]; > + ub->ub_parms[resource].limit = new_limits[1]; Would it be usefull to notify the "resource" controller about this change in limits? For ex: in case of the CPU controller I wrote (http://lkml.org/lkml/2006/8/4/9), I was finding it usefull to recv notification of changes to these limits, so that internal structures (which are kept per-task-group) can be updated. -- Regards, vatsa - 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/