aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/usbtest.c
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2010-06-01 21:04:41 +0000
committerGreg Kroah-Hartman <[email protected]>2010-08-10 21:35:35 +0000
commitc532b29a6f6d31e84a7c88f995eebdc75ebd4248 (patch)
tree5b8dbfae37f6c3c1530ee3651c9d28e00bd15f5e /drivers/usb/misc/usbtest.c
parentUSB-BKL: Remove lock_kernel in usbfs update_sb() (diff)
downloadkernel-c532b29a6f6d31e84a7c88f995eebdc75ebd4248.tar.gz
kernel-c532b29a6f6d31e84a7c88f995eebdc75ebd4248.zip
USB-BKL: Convert usb_driver ioctl to unlocked_ioctl
And audit all the users. None needed the BKL. That was easy because there was only very few around. Tested with allmodconfig build on x86-64 Signed-off-by: Andi Kleen <[email protected]> Cc: Arnd Bergmann <[email protected]> From: Andi Kleen <[email protected]>
Diffstat (limited to 'drivers/usb/misc/usbtest.c')
-rw-r--r--drivers/usb/misc/usbtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
index 16dffe99d9f1..0cfbd789ddf2 100644
--- a/drivers/usb/misc/usbtest.c
+++ b/drivers/usb/misc/usbtest.c
@@ -1548,6 +1548,7 @@ fail:
* off just killing the userspace task and waiting for it to exit.
*/
+/* No BKL needed */
static int
usbtest_ioctl (struct usb_interface *intf, unsigned int code, void *buf)
{
@@ -2170,7 +2171,7 @@ static struct usb_driver usbtest_driver = {
.name = "usbtest",
.id_table = id_table,
.probe = usbtest_probe,
- .ioctl = usbtest_ioctl,
+ .unlocked_ioctl = usbtest_ioctl,
.disconnect = usbtest_disconnect,
.suspend = usbtest_suspend,
.resume = usbtest_resume,