tty: Ensure single-threaded flip buffer consumer with mutex
[deliverable/linux.git] / include / linux / tty.h
index 7c124541f0115d354858b6649ed65e8271b6671c..1c8fef0e3ff65755936ac5833a1c5c59711293ff 100644 (file)
@@ -66,7 +66,7 @@ static inline char *flag_buf_ptr(struct tty_buffer *b, int ofs)
 
 struct tty_bufhead {
        struct work_struct work;
-       spinlock_t lock;
+       struct mutex flush_mutex;
        struct tty_buffer sentinel;
        struct tty_buffer *head;        /* Queue head */
        struct tty_buffer *tail;        /* Active buffer */
This page took 0.024622 seconds and 5 git commands to generate.