tty: tty_port: Change the buffer allocator locking
authorAlan Cox <alan@linux.intel.com>
Mon, 30 Nov 2009 13:16:41 +0000 (13:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:06 +0000 (15:18 -0800)
commit44e4909e453eaa09c7de409fc9ee4ebefd986c1c
tree5bad1ed70f24c7cedd61a7664afe3706abab4e2f
parent1f100b323d19469b06a63ccd6130ed71760145cc
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>
drivers/char/tty_port.c
include/linux/tty.h