Messages in this thread | | | Date | Fri, 18 Sep 2009 17:03:43 +0100 | From | Alan Cox <> | Subject | Re: [BUG? -next] login prompt of tty2~6 displayed slowly |
| |
> 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
| |