lkml.org 
[lkml]   [2005]   [Jun]   [8]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [patch] Real-Time Preemption, -RT-2.6.12-rc6-V0.7.48-00
FromDaniel Walker <>
DateWed, 08 Jun 2005 12:58:15 -0700
On Wed, 2005-06-08 at 13:28 +0200, Ingo Molnar wrote:

>  - fix race in usbnet.c (Eugeny S. Mints)


--- linux/drivers/usb/net/usbnet.c.orig
+++ linux/drivers/usb/net/usbnet.c
@@ -3490,6 +3490,8 @@ static void tx_complete (struct urb *urb
 
 	urb->dev = NULL;
 	entry->state = tx_done;
+	spin_lock_rt(&dev->txq.lock);
+	spin_unlock_rt(&dev->txq.lock);
 	defer_bh (dev, skb);
 }

What are these lines fixing again ? It seems rather odd that locking and
then unlocking a mutex could fix anything ..

Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-08 20:04    [from the cache]
©2003-2008