diff options
author | Alan Cox <alan@linux.intel.com> | 2009-11-30 13:16:41 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:18:06 -0800 |
commit | 44e4909e453eaa09c7de409fc9ee4ebefd986c1c (patch) | |
tree | 5bad1ed70f24c7cedd61a7664afe3706abab4e2f /include | |
parent | 1f100b323d19469b06a63ccd6130ed71760145cc (diff) | |
download | linux-3.10-44e4909e453eaa09c7de409fc9ee4ebefd986c1c.tar.gz linux-3.10-44e4909e453eaa09c7de409fc9ee4ebefd986c1c.tar.bz2 linux-3.10-44e4909e453eaa09c7de409fc9ee4ebefd986c1c.zip |
tty: tty_port: Change the buffer allocator locking
We want to be able to do this without regard for the activate/own open
method being used which causes a problem using port->mutex. Add another
mutex for now. Once everything uses port_open to do buffer allocs we can
kill it back off
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tty.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 6352ac257fc..e9269ca1542 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -212,6 +212,7 @@ struct tty_port { wait_queue_head_t delta_msr_wait; /* Modem status change */ unsigned long flags; /* TTY flags ASY_*/ struct mutex mutex; /* Locking */ + struct mutex buf_mutex; /* Buffer alloc lock */ unsigned char *xmit_buf; /* Optional buffer */ unsigned int close_delay; /* Close port delay */ unsigned int closing_wait; /* Delay for output */ |