From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH/RFC 1/2] anon-inodes: Remove fd_install() from anon_inode_getfd() Date: Mon, 17 Mar 2008 12:48:26 +0200 Message-ID: <47DE4C7A.9030208@qumranet.com> References: <20080225191043.GA32342@lst.de> <20080306151402.GA17077@lst.de> <20080317104025.GA9663@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Roland Dreier , Davide Libenzi , linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List , kvm-devel@lists.sourceforge.net, Andrew Morton , Al Viro To: Christoph Hellwig Return-path: In-Reply-To: <20080317104025.GA9663@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Christoph Hellwig wrote: > On Sat, Mar 08, 2008 at 06:45:34PM -0800, Roland Dreier wrote: > >> > spin_lock(&kvm_lock); >> > + if (--kvm->refcount) { >> > + spin_lock(&kvm_lock); >> >> obvious typo here... >> > > > Indeed. Any comments from the kvm developers in this approach? The > current multi-level file refcounting seems rather bogus so I'd like > to make some progress on this. > > I'm okay with switching away from the file-based refcounts to a refcount embedded in the kvm structures, though I'm not particularly thrilled by it. Any reason not to use krefs for this? -- error compiling committee.c: too many arguments to function