Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932433AbWHRMdz (ORCPT ); Fri, 18 Aug 2006 08:33:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932457AbWHRMdz (ORCPT ); Fri, 18 Aug 2006 08:33:55 -0400 Received: from mailhub.sw.ru ([195.214.233.200]:42304 "EHLO relay.sw.ru") by vger.kernel.org with ESMTP id S932433AbWHRMdz (ORCPT ); Fri, 18 Aug 2006 08:33:55 -0400 Message-ID: <44E5B441.5090404@sw.ru> Date: Fri, 18 Aug 2006 16:36:17 +0400 From: Kirill Korotaev User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en, ru MIME-Version: 1.0 To: Dave Hansen CC: Rik van Riel , ckrm-tech@lists.sourceforge.net, Greg KH , Andi Kleen , Linux Kernel Mailing List , Christoph Hellwig , Andrey Savochkin , Alan Cox , hugh@veritas.com, Ingo Molnar , devel@openvz.org, Pavel Emelianov Subject: Re: [ckrm-tech] [RFC][PATCH 2/7] UBC: core (structures, API) References: <44E33893.6020700@sw.ru> <44E33BB6.3050504@sw.ru> <20060816171527.GB27898@kroah.com> <44E456F4.10001@sw.ru> <1155825160.9274.35.camel@localhost.localdomain> In-Reply-To: <1155825160.9274.35.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 721 Lines: 20 Dave Hansen wrote: > On Thu, 2006-08-17 at 15:45 +0400, Kirill Korotaev wrote: > >>We need more complex decrement/locking scheme than krefs >>provide. e.g. in __put_beancounter() we need >>atomic_dec_and_lock_irqsave() semantics for performance optimizations. > > > Is it possible to put the locking in the destructor? It seems like that > should give similar behavior. objects live in hashes also so you need to distinguish objects being freed on lookup somehow. Kirill - 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/