Skip to content
  • Alan Cox's avatar
    tty: moxa: split open lock · e8c62103
    Alan Cox authored
    
    
    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: default avatarAlan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    e8c62103