[Haifux] Login console freezes: Eli's weekly riddle
shachar at shemesh.biz
Sat Nov 6 21:17:35 IST 2010
On 29/10/10 17:04, Eli Billauer wrote:
> /* find a device that is not in use. */
> printk(KERN_ALERT "34: pty_open to lock\n");
> printk(KERN_ALERT "35: pty_open locked\n");
Set a global variable right before the tty_lock call, and clear it
immediately after. Inside tty_lock (and probably tty_unlock too), set up
many printks conditional on this global variable being set. Print any
relevant identifier you can find (such as the device ID). This should
help you find out WHY the device takes so long to lock. and hopefully,
who the contention is with.
Also, in tty_lock, save to a global variable who is holding the lock,
and print that variable from the code above.
Lingnu Open Source Consulting Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haifux