Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759893AbZJMN06 (ORCPT ); Tue, 13 Oct 2009 09:26:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759785AbZJMN05 (ORCPT ); Tue, 13 Oct 2009 09:26:57 -0400 Received: from adsl-70-250-156-241.dsl.austtx.swbell.net ([70.250.156.241]:33329 "EHLO gw.microgate.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759784AbZJMN05 (ORCPT ); Tue, 13 Oct 2009 09:26:57 -0400 Message-ID: <4AD47FC2.9060303@microgate.com> Date: Tue, 13 Oct 2009 08:25:22 -0500 From: Paul Fulghum User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Alan Cox CC: Linus Torvalds , Nix , "Justin P. Mattock" , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Boyan , Dmitry Torokhov , Ed Tomlinson , =?ISO-8859-1?Q?=22Fr=E9d=E9ric_L=2E_W=2E_?= =?ISO-8859-1?Q?Meunier=22?= , OGAWA Hirofumi Subject: Re: [Bug #14388] keyboard under X with 2.6.31 References: <56acieJJ2fF.A.nEB.Hzl0KB@chimera> <87ljjgfcbu.fsf@spindle.srvr.nix> <20091013113232.384b2432@lxorguk.ukuu.org.uk> In-Reply-To: <20091013113232.384b2432@lxorguk.ukuu.org.uk> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 880 Lines: 25 Alan Cox wrote: > The tty_buffer_request_room() is a hint to help better allocation. It's > also only safe to run from the receiving path of the driver (which > has always been assumed not to make two parallel calls to the function at > once. Yes, the locking only synchronizes between producer and consumer. It does not coordinate between multiple producers as it provides a lot of flexibility (and responsibility) to the producer in how to fill the buffers. -- Paul Fulghum MicroGate Systems, Ltd. =Customer Driven, by Design= (800)444-1982 (512)345-7791 (Direct) (512)343-9046 (Fax) Central Time Zone (GMT -5h) www.microgate.com -- 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/