Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751925Ab2BPO1j (ORCPT ); Thu, 16 Feb 2012 09:27:39 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:49851 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005Ab2BPO1i (ORCPT ); Thu, 16 Feb 2012 09:27:38 -0500 Date: Thu, 16 Feb 2012 14:27:33 +0000 From: Matthew Garrett To: Thomas Gleixner Cc: LKML , Arjan van de Ven , Peter Zijlstra Subject: Re: [PATCH] hrtimers: Special-case zero length sleeps Message-ID: <20120216142733.GA15632@srcf.ucam.org> References: <1317308372-6810-1-git-send-email-mjg@redhat.com> <20120215145225.GA21448@srcf.ucam.org> <20120215202221.GA29552@srcf.ucam.org> <20120215203814.GA29795@srcf.ucam.org> <20120215204757.GA30275@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120215204757.GA30275@srcf.ucam.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 22 On Wed, Feb 15, 2012 at 08:47:57PM +0000, Matthew Garrett wrote: > Ok. I'll work on finding how prevelant it is and see if we can kill it > off in userspace. Checking through an exploded Fedora kernel tree suggests around 125 packages out of 11000 or so, so around 1% of userspace seems to use sleep(0) under certain circumstances. We can probably fix everything in the distribution, but that suggests that there's also going to be a significant amount of code in the outside world that's also broken. Userspace clearly has an expectation that sleep(0) is magic in some ill-defined way. We'd be well within our rights to break that expectation, but I think it's common enough to warrant special casing. -- Matthew Garrett | mjg59@srcf.ucam.org -- 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/