Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757319AbZFVTgY (ORCPT ); Mon, 22 Jun 2009 15:36:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756119AbZFVTgC (ORCPT ); Mon, 22 Jun 2009 15:36:02 -0400 Received: from x35.xmailserver.org ([64.71.152.41]:45661 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756013AbZFVTgA (ORCPT ); Mon, 22 Jun 2009 15:36:00 -0400 X-AuthUser: davidel@xmailserver.org Date: Mon, 22 Jun 2009 12:29:48 -0700 (PDT) From: Davide Libenzi X-X-Sender: davide@makko.or.mcafeemobile.com To: Gregory Haskins cc: "Michael S. Tsirkin" , kvm@vger.kernel.org, Linux Kernel Mailing List , avi@redhat.com, paulmck@linux.vnet.ibm.com, Ingo Molnar , Rusty Russell Subject: Re: [PATCH 3/3] eventfd: add internal reference counting to fix notifier race conditions In-Reply-To: <4A3FDAF1.6010700@novell.com> Message-ID: References: <4A3D895C.7020605@novell.com> <4A3E7E63.1070407@novell.com> <4A3FABD9.7080108@novell.com> <4A3FC2B1.4050107@novell.com> <20090622184139.GG15228@redhat.com> <20090622190537.GI15228@redhat.com> <4A3FDAF1.6010700@novell.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) X-GPG-FINGRPRINT: CFAE 5BEE FD36 F65E E640 56FE 0974 BF23 270F 474E X-GPG-PUBLIC_KEY: http://www.xmailserver.org/davidel.asc MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 32 On Mon, 22 Jun 2009, Gregory Haskins wrote: > Michael S. Tsirkin wrote: > > On Mon, Jun 22, 2009 at 11:51:42AM -0700, Davide Libenzi wrote: > > > >> A file* based kernel-to-kernel interface is rather wrong IMO. > >> > > > > But eventfd_ctx should work fine. > > > > Yeah, and I guess we can always just say that qemu can't close the fd or > something. Seems hacky, but it might work if Davide insists we need his > change. Continuing here, since there's no reason of having many subthreads talking about the same thing. Can you make a detailed example of what you're trying to achieve (no Hint Mode, please)? As it sounds to me, that you need a consumer/producer reference counting, to cover your scenario correctly. - Davide -- 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/