USB usbfs: replace the per-file semaphore with the per-device semaphore
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
@@ -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