Re: [PATCH v2 (resend #3)] hvc_console: Fix race between hvc_close and hvc_remove

2010-03-12 Thread Greg KH
On Fri, Mar 12, 2010 at 11:53:15AM +0530, Amit Shah 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(). > > Alan describes it thus: > > The hvc_console assumes that a close and remove call can't occur at the

[PATCH v2 (resend #3)] hvc_console: Fix race between hvc_close and hvc_remove

2010-03-11 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 i