>From e58722a5fc0c00bceaea1f70d5024f6325ac3a6c Mon Sep 17 00:00:00 2001 From: Oliver Neukum <oliver@xxxxxxxxxx> Date: Sat, 6 Mar 2010 12:09:41 +0100 Subject: [PATCH] usb: usbfs: Fix deadlock of khubd The caller of usbfs_conn_disc_event() already holds usbfs_mutex. Don't take it again. Signed-off-by: Oliver Neukum <neukum@xxxxxxxxxxxxx> --- This fixes the "commit 554f76962d3a6eb5110415f1591aca83f96a84ae hangs USB vmware-7.0.1" issue. drivers/usb/core/devices.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c index c83c975..08def6b 100644 --- a/drivers/usb/core/devices.c +++ b/drivers/usb/core/devices.c @@ -155,11 +155,10 @@ static const struct class_info clas_info[] = /*****************************************************************/ +/* the caller holds usbfs_mutex */ void usbfs_conn_disc_event(void) { - mutex_lock(&usbfs_mutex); conndiscevcnt++; - mutex_unlock(&usbfs_mutex); wake_up(&deviceconndiscwq); } -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html