From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Fulghum Subject: Re: [Bug #14388] keyboard under X with 2.6.31 Date: Tue, 13 Oct 2009 08:25:22 -0500 Message-ID: <4AD47FC2.9060303@microgate.com> References: <56acieJJ2fF.A.nEB.Hzl0KB@chimera> <87ljjgfcbu.fsf@spindle.srvr.nix> <20091013113232.384b2432@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20091013113232.384b2432@lxorguk.ukuu.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" 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 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