]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
USB: serial: fix assumption that throttle/unthrottle cannot sleep
authorOliver Neukum <oliver@neukum.org>
Wed, 7 Oct 2009 08:50:23 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Oct 2009 20:52:09 +0000 (13:52 -0700)
commit638325154572ba2113a18669fe3b299caa2dabd9
treec562a8460be432facbbba11288edaceba5ecbf1c
parentb2a5cf1bdc011f5474c72543f9d8116c0f07f452
USB: serial: fix assumption that throttle/unthrottle cannot sleep

many serial subdrivers are clearly written as if throttle/unthrottle
cannot sleep. This leads to unneeded atomic submissions. This
patch converts affected drivers in a way to makes very clear that
throttle/unthrottle can sleep. Thus future misdesigns can be avoided
and efficiency and reliability improved.

This removes any such assumption using GFP_KERNEL and spin_lock_irq()

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/aircable.c
drivers/usb/serial/cypress_m8.c
drivers/usb/serial/empeg.c
drivers/usb/serial/garmin_gps.c
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/mct_u232.c
drivers/usb/serial/symbolserial.c
drivers/usb/serial/visor.c
drivers/usb/serial/whiteheat.c