]> git.baikalelectronics.ru Git - kernel.git/commit
USB: get rid of urb->lock
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 24 Aug 2007 19:42:39 +0000 (15:42 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:23 +0000 (14:55 -0700)
commit4495bc6cac0adbf2c1342599423f6b45f4425faa
treeea02b1f45fe22214778d4986bc2d1b7051dcdced
parent068e2aae0f9ef48ccd75d5f2c1f3022ae8650be4
USB: get rid of urb->lock

Now that urb->status isn't used, urb->lock doesn't protect anything.
This patch (as980) removes it and replaces it with a private mutex in
the one remaining place it was still used: usb_kill_urb.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/urb.c
include/linux/usb.h