diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2015-10-17 22:36:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-18 06:32:21 +0200 |
commit | e176058f0de53c2346734e5254835e0045364001 (patch) | |
tree | b5a4e03beb2a24c03ca5023599f045cc5375828a /drivers/tty/tty_io.c | |
parent | tty: Prevent tty teardown during tty_write_message() (diff) | |
download | linux-e176058f0de53c2346734e5254835e0045364001.tar.xz linux-e176058f0de53c2346734e5254835e0045364001.zip |
tty: Abstract tty buffer work
Introduce API functions to restart and cancel tty buffer work, rather
than manipulate buffer work directly.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r-- | drivers/tty/tty_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 173fdeba0987..0c41dbcb90b8 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -1689,7 +1689,7 @@ static void release_tty(struct tty_struct *tty, int idx) tty->port->itty = NULL; if (tty->link) tty->link->port->itty = NULL; - cancel_work_sync(&tty->port->buf.work); + tty_buffer_cancel_work(tty->port); tty_kref_put(tty->link); tty_kref_put(tty); |