[PATCH] linux: Fix CPU usage bug in console fd flushing

Daniel Stone daniel at fooishbar.org
Fri Dec 3 01:44:51 PST 2010


On Fri, Dec 03, 2010 at 07:19:24AM +0100, Thierry Vignaud wrote:
> On 14 November 2010 17:06, Mikhail Gusarov <dottedmag at dottedmag.net> wrote:
> > Twas brillig at 16:59:54 14.11.2010 UTC+01 when thierry.vignaud at gmail.com did gyre and gimble:
> >
> >  TV> From 20e32420a2f75b58603eb1578c151d63e6b2e8ac Mon Sep 17 00:00:00 2001
> >  TV> From: Adam Jackson <ajax at redhat.com>
> >  TV> Date: Wed, 25 Aug 2010 11:06:38 -0400
> >  TV> Subject: [PATCH] linux: Fix CPU usage bug in console fd flushing
> >
> >  TV> If the vt gets a vhangup from under us, then the tty will appear ready
> >  TV> in select(), but trying to tcflush() it will return -EIO, so we'll spin
> >  TV> around at 100% CPU for no reason.  Notice this condition and unregister
> >  TV> the handler if it happens.
> >
> >  TV> Signed-off-by: Adam Jackson <ajax at redhat.com>
> >
> > Reviewed-by: Mikhail Gusarov <dottedmag at dottedmag.net>
> 
> Will it get merged?

It already did; ajax submitted it to the list before you did, and it got
picked up from there, as commit a6b9e8f1.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101203/4e19d2d6/attachment.pgp>


More information about the xorg-devel mailing list