Re: [PATCH -next 20/27] tty: Refactor __tty_hangup to enable lockdep annotation

2014-10-27 Thread Peter Hurley
On 10/16/2014 04:25 PM, Peter Hurley wrote: > Refactor __tty_hangup() into: > 1. __tty_hangup_common(), the portion requiring the tty lock > 2. __tty_hangup(), which performs the pre- and post-lock processing >(TIOCCONS redirect undo) and calls through a function ptr parameter >to lock/hang

[PATCH -next 20/27] tty: Refactor __tty_hangup to enable lockdep annotation

2014-10-16 Thread Peter Hurley
Refactor __tty_hangup() into: 1. __tty_hangup_common(), the portion requiring the tty lock 2. __tty_hangup(), which performs the pre- and post-lock processing (TIOCCONS redirect undo) and calls through a function ptr parameter to lock/hangup/unlock 3. __tty_hangup_standard(), which performs t