TTY: move ldisc data from tty_struct: locks
atomic_write_lock is not n_tty specific, so move it up in the tty_struct. And since these are the last ones to move, remove also the comment saying there are some ldisc' members. There are none now. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
ba2e68ac61
commit
bddc7152f6
@@ -2939,11 +2939,7 @@ void initialize_tty_struct(struct tty_struct *tty,
|
||||
init_waitqueue_head(&tty->write_wait);
|
||||
init_waitqueue_head(&tty->read_wait);
|
||||
INIT_WORK(&tty->hangup_work, do_tty_hangup);
|
||||
mutex_init(&tty->atomic_read_lock);
|
||||
mutex_init(&tty->atomic_write_lock);
|
||||
mutex_init(&tty->output_lock);
|
||||
mutex_init(&tty->echo_lock);
|
||||
spin_lock_init(&tty->read_lock);
|
||||
spin_lock_init(&tty->ctrl_lock);
|
||||
INIT_LIST_HEAD(&tty->tty_files);
|
||||
INIT_WORK(&tty->SAK_work, do_SAK_work);
|
||||
|
Reference in New Issue
Block a user