Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755259AbXFXRDk (ORCPT ); Sun, 24 Jun 2007 13:03:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751398AbXFXRDc (ORCPT ); Sun, 24 Jun 2007 13:03:32 -0400 Received: from nic.NetDirect.CA ([216.16.235.2]:45371 "EHLO rubicon.netdirect.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbXFXRDb (ORCPT ); Sun, 24 Jun 2007 13:03:31 -0400 X-Originating-Ip: 74.102.207.204 Date: Sun, 24 Jun 2007 12:59:20 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Satyam Sharma cc: Arnd Bergmann , Florin Iucha , Linux Kernel Mailing List Subject: Re: "upping" a semaphore from interrupt context? In-Reply-To: Message-ID: References: <20070622173839.GB8398@iucha.net> <200706221934.18436.arnd@arndb.de> <200706231402.03617.arnd@arndb.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Net-Direct-Inc-MailScanner-Information: Please contact the ISP for more information X-Net-Direct-Inc-MailScanner: Found to be clean X-Net-Direct-Inc-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-36.8, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -15.00, INIT_RECVD_OUR_AUTH -20.00) X-Net-Direct-Inc-MailScanner-From: rpjday@mindspring.com Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1205 Lines: 29 On Sun, 24 Jun 2007, Satyam Sharma wrote: > Whoa, hold on. But I've been explicitly mentioning *binary* > semaphores all along! > > Of course users who want / allow multiple tasks (but only upto a > specific maximum number, which is what counted semaphores are all > about) to be present in a given critical section simultaneously > would still want to use the _counted_ semaphores, which is why you > won't see the old "struct semaphores" dying anytime soon. ah, ok, i've been misreading all this, sorry. i'm wondering, then, if, given both mutexes and completions, whether the general semantics of semaphores can be tightened up at all. just curious. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== - 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/