]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
usb: sysfs: make locking interruptible
authorOliver Neukum <oneukum@suse.com>
Thu, 21 Jan 2016 14:18:47 +0000 (15:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:29:12 +0000 (13:29 -0800)
commit7dd9cba5bb90ffa9c60c1533b715dc91c5082cd9
treebb4a3865a2873a13a642352bff604c951459e873
parent5363de75307e333d89df7531f9dd8310d973ecdb
usb: sysfs: make locking interruptible

232275a USB: fix substandard locking for the sysfs files
introduced needed locking into sysfs operations on USB devices
It, however, uses uninterruptible sleep and if the error
handling is on extreme cases of sleep lengths of 10s of seconds
are possible. Unless we are removing the device we should use
interruptible sleep.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/sysfs.c
include/linux/device.h
include/linux/usb.h