[SERIAL] Clean up serial locking when obtaining a reference to a port
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 30 Apr 2006 10:13:50 +0000 (11:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 30 Apr 2006 10:13:50 +0000 (11:13 +0100)
commit68ac64cd3fd89fdaa091701f6ab98a9065e9b1b5
tree349dc1446bb52b87ce11f7ba2bb52d90679d3dd5
parente0a515bc6a2188f02916e976f419a8640312e32a
[SERIAL] Clean up serial locking when obtaining a reference to a port

The locking for the uart_port is over complicated, and can be
simplified if we introduce a flag to indicate that a port is "dead"
and will be removed.

This also helps the validator because it removes a case of non-nested
unlock ordering.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
drivers/serial/serial_core.c
include/linux/serial_core.h