[RFC PATCH 4/5] hvc_console: Add tty window resizing

Alan Cox alan at lxorguk.ukuu.org.uk
Wed Oct 15 03:14:08 EST 2008


> Since tty_do_resize() cannot be called holding the hp spinlock; the code uses
> now tty_kref_get/put to keep track of the tty object. I am not sure if the
> use of the kref's is correct here, so please let me know if there is a better
> solution.

That looks right to me, hp->tty can go NULL but the tty object itself
will still have a reference even if the asynchronous events kick off late




More information about the Linuxppc-dev mailing list