mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix SMP lockup in usbdevfs
@ 2001-03-30  1:36 Tony Hoyle
  0 siblings, 0 replies; only message in thread
From: Tony Hoyle @ 2001-03-30  1:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-usb-devel

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

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

[-- Attachment #2: devio.patch --]
[-- Type: text/plain, Size: 551 bytes --]

--- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-30  1:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30  1:36 [PATCH] Fix SMP lockup in usbdevfs Tony Hoyle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®