I think that holding the urb's spinlock is bad if that urb
will ever be used again; although maybe I'm missing something...
I'm also not clear on why urb is being NULLed...
--- 2.4.4-clean/drivers/usb/usb-uhci.c Fri Apr 27 18:13:07 2001
+++ linux/drivers/usb/usb-uhci.c Thu May 17 23:16:19 2001
@@ -2639,14 +2639,12 @@
if (is_ring && !was_unlinked && !contains_killed) {
urb->dev=usb_dev;
uhci_submit_urb (urb);
- } else
- urb = 0;
+ }
spin_lock(&s->urb_list_lock);
}
usb_dec_dev_use (usb_dev);
- if (urb)
- spin_unlock(&urb->lock);
+ spin_unlock(&urb->lock);
}
}
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel
- Re: [linux-usb-devel] [patch] usb-uhci held spinlock Dan Streetman
- Re: [linux-usb-devel] [patch] usb-uhci held spinlock Pete Zaitcev
- Re: [linux-usb-devel] [patch] usb-uhci held spinlock David Brownell
- Re: [linux-usb-devel] [patch] usb-uhci held spinlock David Brownell
- Re: [linux-usb-devel] [patch] usb-uhci held spinlo... Dan Streetman
- Re: [linux-usb-devel] [patch] usb-uhci held spinlock Dan Streetman
- Re: [linux-usb-devel] [patch] usb-uhci held spinlo... David Brownell
- Re: [linux-usb-devel] [patch] usb-uhci held spinlock Dan Streetman
- Re: [linux-usb-devel] [patch] usb-uhci held spinlo... David Brownell
- Re: [linux-usb-devel] [patch] usb-uhci held spinlock Pete Zaitcev
- Re: [linux-usb-devel] [patch] usb-uhci held spinlo... David Brownell
