Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934198AbWKWWfr (ORCPT ); Thu, 23 Nov 2006 17:35:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934205AbWKWWfr (ORCPT ); Thu, 23 Nov 2006 17:35:47 -0500 Received: from mx1.redhat.com ([66.187.233.31]:13487 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S934198AbWKWWfo (ORCPT ); Thu, 23 Nov 2006 17:35:44 -0500 Message-ID: <45662206.1070104@redhat.com> Date: Thu, 23 Nov 2006 14:34:46 -0800 From: Ulrich Drepper Organization: Red Hat, Inc. User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Hans Henrik Happe CC: Evgeniy Polyakov , David Miller , Andrew Morton , netdev , Zach Brown , Christoph Hellwig , Chase Venters , Johann Borck , linux-kernel@vger.kernel.org, Jeff Garzik Subject: Re: [take25 1/6] kevent: Description. References: <11641265982190@2ka.mipt.ru> <20061123115504.GB20294@2ka.mipt.ru> <4565FDED.2050003@redhat.com> <200611232249.56886.hhh@imada.sdu.dk> In-Reply-To: <200611232249.56886.hhh@imada.sdu.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 681 Lines: 15 Hans Henrik Happe wrote: > I don't know if this falls under the simplification, but wouldn't there be a > race when reading/copying the event data? I guess this could be solved with > an extra user index. That's what I said, reading the value from the ring buffer structure's head would be racy. All this can only work for single threaded code. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ - 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/