]> git.baikalelectronics.ru Git - kernel.git/commit
TTY: move devpts kill to pty
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Oct 2012 20:26:31 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 23:50:13 +0000 (16:50 -0700)
commite74a9c76c3ca44fb02f18832d694e6a415a6c513
tree531ad8fdd185f96655f084a43ee1adb291941321
parent2cd7d23278d2d026a1a1d03c03990dd155901227
TTY: move devpts kill to pty

Now that we have control over tty->driver_data in pty, we can just
kill the /dev/pts/ in pty code too. Namely, in ->shutdown hook of
tty. For pty, this is called only once, for whichever end is closed
last. But we don't care, both driver_data are the inode as it used to
be till 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>
drivers/tty/pty.c
drivers/tty/tty_io.c