Re: [RFC PATCH 4/5] hvc_console: Add tty window resizing
From: Alan Cox
Date: Tue Oct 14 2008 - 12:28:37 EST
> 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
--
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/