From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967192AbXEGXP7 (ORCPT ); Mon, 7 May 2007 19:15:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S967187AbXEGXP5 (ORCPT ); Mon, 7 May 2007 19:15:57 -0400 Received: from haxent.com ([65.99.219.155]:3686 "EHLO haxent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967089AbXEGXP4 (ORCPT ); Mon, 7 May 2007 19:15:56 -0400 Message-ID: <463FB327.4070906@haxent.com.br> Date: Mon, 07 May 2007 20:15:51 -0300 From: Davi Arnaut MIME-Version: 1.0 To: Ulrich Drepper Cc: Davide Libenzi , Andrew Morton , Linus Torvalds , Linux Kernel Mailing List Subject: Re: [PATCH] rfc: threaded epoll_wait thundering herd References: <20070504225730.490334000@haxent.com.br> <463BC3CA.6050109@haxent.com.br> <463CFA37.3020809@haxent.com.br> <463F9B68.305@haxent.com.br> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ulrich Drepper wrote: > On 5/7/07, Davi Arnaut wrote: >> See Linus's message on this same thread. > > No. I'm talking about the userlevel side, not kernel side. So you probably knew the answer before asking the question. > If a thread is canceled *after* it returns from the syscall but before > it reports the event to the call (i.e., while still in the syscall > wrapper, thread cancellation rules require a check there) the event is > lost. Exactly. The same happens with sigwaitinfo(), and various other. > Linus was only talking about the kernel side and how in the exit path > such events are not lost. Anyway, we could extend epoll to be mmapable... -- Davi Arnaut