Re: [BUG? -next] login prompt of tty2~6 displayed slowly

From: Alan Cox
Date: Fri Sep 18 2009 - 12:08:50 EST


> And I find out that the root cause of this problem is the following
> patch: commit 236cce0066f9c6a4856bc0404e541d3db3b0255e
> Titled "tty: make the kref destructor occur asynchronously"

Technically its a bug in mingetty but in practical terms its a
regression and the new behaviour isn't nice at all.

> When the tty is closed, the content of tty is not released
> immediately. And the flag of tty is set with TTY_CLOSING. So when the
> tty is reopened, the tty may not be released yet. Because the
> TTY_CLOSING in flag of tty is still valid. The kernel returns "-EIO"
> error. And the message "/sbin/mingetty[3062]: tty2: cannot open tty:
> Input/output error" is displayed at the user land.

See the previous discussions on how to fix this. I'm not sure if anyone
has addressed them yet but basically the shutdown and async destructor
need to be split apart so the device is deregistered synchronously and
then destroyed asynchronously
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/