[RFC 1/9] tty: replace BKL with a new tty_lock
From: Arnd Bergmann <arnd(a)relay.de.ibm.com> As a preparation for replacing the big kernel lock in the TTY layer, wrap all the callers in new macros tty_lock, tty_lock_nested and tty_unlock. Code that has been verified to never be called with the tty_lock held should use tty_lock, other code should use tty_loc... 30 Mar 2010 17:15
[RFC 2/9] tty: make atomic_write_lock release tty_lock
Signed-off-by: Arnd Bergmann <arnd(a)arndb.de> --- drivers/char/tty_io.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 25b82eb..ef21e1d 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -915,7 +915,7 @@ int tty_wri... 30 Mar 2010 17:15
[RFC 0/9] BKL conversion in TTY drivers
This is one of the tricker bits in the BKL removal series, so let's discuss it here. In order to build a kernel without the BKL, it's obviously necessary to do something about the TTY code. This series introduces a new Big TTY Mutex that is based on the earlier implementation of the Big Kernel Semaphore, but comes... 30 Mar 2010 17:15
[RFC 6/9] tty: never hold tty_lock() while getting tty_mutex
From: Arnd Bergmann <arnd(a)relay.de.ibm.com> This avoids having to annotate every mutex_lock(&tty_mutex) as mutex_lock_tty. Signed-off-by: Arnd Bergmann <arnd(a)arndb.de> --- drivers/char/pty.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/char/pty.c b/drivers/char/pty.c i... 30 Mar 2010 17:15
Staging: quatech_usb2: fix coding style issues
On Tue, 2010-03-30 at 20:11 +0000, Soeren Moeller wrote: This is a patch to the file quatech_usb2.c that fixes two space before tabular and one line of more than 80 characters warnings found by checkpatch.pl - tty_insert_flip_string(tty_st, - &((unsigned char *)(urb->transfer_buffer) - )[i], ... 31 Mar 2010 05:27
[RFC 7/9] ppp: use big tty mutex
ppp interacts with the tty layer, so it should take the BTM instead of the BKL. Signed-off-by: Arnd Bergmann <arnd(a)arndb.de> --- drivers/net/ppp_generic.c | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.... 30 Mar 2010 17:14
[PATCH] net: Fix oops from tcp_collapse() when using splice()
tcp_read_sock() can have a eat skbs without immediately advancing copied_seq. This can cause a panic in tcp_collapse() if it is called as a result of the recv_actor dropping the socket lock. A userspace program that splices data from a socket to either another socket or to a file can trigger this bug. Signed-o... 30 Mar 2010 17:14
[PATCH v6 0/8] hid: new driver for PicoLCD device
On Tue, 30 March 2010 Jiri Kosina <jkosina(a)suse.cz> wrote: so please either remove the parts that depend on power management for now, or I'll wait on your respin of the generic HID-PM patch. Here I respin the whole series, with PM moved to patch n°8 and patch n°7 being my original generic HID-PM. Without the... 30 Mar 2010 17:14
[PATCH v6 8/8] hid: add PM support to PicoLCD device
Add PM support in order to turn off backlight on suspend, restore it on resume and especially restore complete state on reset-resume. Signed-off-by: Bruno Prémont <bonbons(a)linux-vserver.org> --- drivers/hid/hid-picolcd.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 del... 30 Mar 2010 17:14
[PATCH v6 7/8, needs improvement] hid: add suspend/resume hooks for hid drivers
Add suspend/resume hooks for HID drivers so these can do some additional state adjustment when device gets suspended/resumed. This patch calls these hooks from usbhid suspend/resume functions, only calling suspend on plain suspend, not autosuspend. (it might be worth adding an autosuspend parameter to suspend ho... 30 Mar 2010 17:14