> each driver can keep the number of the references itself. Holding tty_mutex
Agreed.
That isn't valid behaviour according to the POSIX tty rules. An open of a
closing tty blocks until the close completes. Most drivers using the
TTY_CLOSING flag to handle this.
So NAK the patch but basically agree with the approach - the EBUSY needs
to become a 'wait for close to complete, goto retry'
Alan
--