The patch number 8445 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Mauro Carvalho Chehab  <[EMAIL PROTECTED]>
backport commit b9e40857682ecfc5bcd0356a23ff409883ffb982


Author: David S. Miller <[EMAIL PROTECTED]>
    Date:   Tue Jul 15 00:15:08 2008 -0700

    netdev: Do not use TX lock to protect address lists.

    Now that we have a specific lock to protect the network
    device unicast and multicast lists, remove extraneous
    grabs of the TX lock in cases where the code only needs
    address list protection.

Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>


---

 linux/drivers/media/dvb/dvb-core/dvb_net.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff -r 439cdc0fc36a -r 978801a35c13 linux/drivers/media/dvb/dvb-core/dvb_net.c
--- a/linux/drivers/media/dvb/dvb-core/dvb_net.c        Thu Jul 24 12:46:11 
2008 -0300
+++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c        Thu Jul 24 12:53:50 
2008 -0300
@@ -1165,7 +1165,11 @@ static void wq_set_multicast_list (struc
 #ifdef OLD_XMIT_LOCK   /* Kernels equal or lower than 2.6.17 */
        spin_lock_bh(&dev->xmit_lock);
 #else
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26)
        netif_tx_lock_bh(dev);
+#else
+       netif_addr_lock_bh(dev);
+#endif
 #endif
 
        if (dev->flags & IFF_PROMISC) {
@@ -1194,7 +1198,11 @@ static void wq_set_multicast_list (struc
 #ifdef OLD_XMIT_LOCK   /* Kernels equal or lower than 2.6.17 */
        spin_unlock_bh(&dev->xmit_lock);
 #else
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26)
        netif_tx_unlock_bh(dev);
+#else
+       netif_addr_unlock_bh(dev);
+#endif
 #endif
        dvb_net_feed_start(dev);
 }


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/978801a35c13a7b41d1431c72867a37d5f3fb3c5

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to