commit | e8c62103fd5fecc8d2086bae244b32d089892175 | [log] [tgz] |
---|---|---|
author | Alan Cox <alan@linux.intel.com> | Mon Nov 30 13:18:24 2009 +0000 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Dec 11 15:18:08 2009 -0800 |
tree | b87fe3662714c89f38cddd6b7fafc4b60e8b2642 | |
parent | f710ebd7f70801e31751f2c49fe4b92a477d24eb [diff] |
tty: moxa: split open lock moxa_openlock is used for several situations where we want to handle the case of an ioctl that crosses many ports (not just the open tty), and also cases where an open races a deinit (eg a pci unplug) and we hangup a port before we can cope with that. The non open race cases can use the moxa_lock spinlock. This simplifies sorting out the remaining mess. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>