Skip to contentSkip to conversation

USB usbfs: replace the per-file semaphore with the per-device semaphore

PATCH In review Duncan Sands 1 participant 1 message Apr 14, 2004 USB

lore
Share & tools
lore
#0 lore raw

PATCH 2/9 USB usbfs: replace the per-file semaphore with the per-device semaphore

 devio.c		|   43 +++++++++++++++++++++++--------------------
 usbdevice_fs.h	|    1 -
 2 files changed, 23 insertions(+), 21 deletions(-)
include/linux/usbdevice_fs.h +0 -1
diff -Nru a/include/linux/usbdevice_fs.h b/include/linux/usbdevice_fs.h
@@ -154,7 +154,6 @@
 
 struct dev_state {
 	struct list_head list;      /* state list */
-	struct rw_semaphore devsem; /* protects modifications to dev (dev == NULL indicating disconnect) */ 
 	struct usb_device *dev;
 	struct file *file;
 	spinlock_t lock;            /* protects the async urb lists */
drivers/usb/core/devio.c +23 -20

138 lines not on this page · raw message