lkml.org 
[lkml]   [2001]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix SMP lockup in usbdevfs
This fixes a lockup when calling the USBDEVFS_SUBMITURB ioctl in an SMP 
kernel.

Tony

--
Don't click on this sig - a cyberwoozle will eat your underwear.

tmh@magenta-netlogic.com http://www.nothing-on.tv
--- devio.c.old Fri Mar 30 02:22:32 2001
+++ devio.c Fri Mar 30 02:12:09 2001
@@ -175,6 +175,7 @@
return NULL;
memset(as, 0, assize);
as->urb.number_of_packets = numisoframes;
+ spin_lock_init(&as->urb.lock);
return as;
}

@@ -250,7 +251,7 @@
struct dev_state *ps = as->ps;
struct siginfo sinfo;

-#if 1
+#if 0
printk(KERN_DEBUG "usbdevfs: async_completed: status %d errcount %d actlen %d pipe 0x%x\n",
urb->status, urb->error_count, urb->actual_length, urb->pipe);
#endif
\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.418 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site