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: Wed, 14 Oct 2009 10:34:52 -0600 Message-ID: <4AD5FDAC.7080108@microgate.com> References: <56acieJJ2fF.A.nEB.Hzl0KB@chimera> <87ljjgfcbu.fsf@spindle.srvr.nix> <4AD3F769.5080405@gmail.com> <4AD437F9.9020708@yahoo.co.uk> <4AD4DE4C.4010402@yahoo.co.uk> <4AD4F548.2030506@microgate.com> <1255478932.19056.24.camel@localhost.localdomain> <4AD51D6B.7010509@microgate.com> <2009101412584 6.1a3c8d40@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: kernel-testers-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Linus Torvalds Cc: Alan Cox , Boyan , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Dmitry Torokhov , Ed Tomlinson , hirofumi-UIVanBePwB70ZhReMnHkpc8NsWr+9BEh@public.gmane.org Linus Torvalds wrote: > No, the code was clearly _designed_ for it - that's the whole and only > point of the > > tty->buf.head = NULL; I don't know about the original flush_to_ldisc, but I designed the above code to protect against parallel calls knowing I could not hold a spinlock when calling receive_buf. TTY_FLUSHING came later. The problem associated with that addition proves my code is obscure enough to make maintenance difficult. I got confused reviewing my own code yesterday. Boo hoo, live and learn. -- 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