[PATCH v2] hvc_console: Fix race between hvc_close and hvc_remove

2010-03-03 Thread Amit Shah
Alan pointed out a race in the code where hvc_remove is invoked. The recent virtio_console work is the first user of hvc_remove(). Alan describes it thus: The hvc_console assumes that a close and remove call can't occur at the same time. In addition tty_hangup(tty) is problematic as tty_hangup

Re: [PATCH v2] hvc_console: Fix race between hvc_close and hvc_remove

2010-03-03 Thread Alan Cox
On Wed, 3 Mar 2010 20:59:48 +0530 Amit Shah amit.s...@redhat.com wrote: Alan pointed out a race in the code where hvc_remove is invoked. The recent virtio_console work is the first user of hvc_remove(). Looks better to me. Alan ___ Linuxppc-dev

Re: [PATCH v2] hvc_console: Fix race between hvc_close and hvc_remove

2010-03-03 Thread Amit Shah
On (Wed) Mar 03 2010 [15:55:22], Alan Cox wrote: On Wed, 3 Mar 2010 20:59:48 +0530 Amit Shah amit.s...@redhat.com wrote: Alan pointed out a race in the code where hvc_remove is invoked. The recent virtio_console work is the first user of hvc_remove(). Looks better to me. Thanks, Alan.