aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tty.h
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-06-15 09:14:31 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 19:43:02 -0400
commitd8c1f929aa8164cd8eaa830068d2fa3159c0764a (patch)
tree1371cfe90fffdcb7115b39c77e0f729c109efc69 /include/linux/tty.h
parentfb7aa03db605e4f0b9a62cd4c77177c2596edd95 (diff)
tty: Only guarantee termios read safety for throttle/unthrottle
No tty driver modifies termios during throttle() or unthrottle(). Therefore, only read safety is required. However, tty_throttle_safe and tty_unthrottle_safe must still be mutually exclusive; introduce throttle_mutex for that purpose. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r--include/linux/tty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index d3042076d163..57a70d1d0412 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -244,6 +244,7 @@ struct tty_struct {
244 244
245 struct mutex atomic_write_lock; 245 struct mutex atomic_write_lock;
246 struct mutex legacy_mutex; 246 struct mutex legacy_mutex;
247 struct mutex throttle_mutex;
247 struct rw_semaphore termios_rwsem; 248 struct rw_semaphore termios_rwsem;
248 spinlock_t ctrl_lock; 249 spinlock_t ctrl_lock;
249 /* Termios values are protected by the termios rwsem */ 250 /* Termios values are protected by the termios rwsem */