]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.8-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2013 16:02:00 +0000 (09:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2013 16:02:00 +0000 (09:02 -0700)
added patches:
bonding-get-netdev_rx_handler_unregister-out-of-locks.patch

queue-3.8/bonding-get-netdev_rx_handler_unregister-out-of-locks.patch [new file with mode: 0644]
queue-3.8/series

diff --git a/queue-3.8/bonding-get-netdev_rx_handler_unregister-out-of-locks.patch b/queue-3.8/bonding-get-netdev_rx_handler_unregister-out-of-locks.patch
new file mode 100644 (file)
index 0000000..75ad647
--- /dev/null
@@ -0,0 +1,38 @@
+From 81c86d8de2fde1b668fa7d9f3221e15ce90005cf Mon Sep 17 00:00:00 2001
+From: Veaceslav Falico <vfalico@redhat.com>
+Date: Tue, 2 Apr 2013 05:15:16 +0000
+Subject: bonding: get netdev_rx_handler_unregister out of locks
+
+From: Veaceslav Falico <vfalico@redhat.com>
+
+[ Upstream commit fcd99434fb5c137274d2e15dd2a6a7455f0f29ff ]
+
+Now that netdev_rx_handler_unregister contains synchronize_net(), we need
+to call it outside of bond->lock, cause it might sleep. Also, remove the
+already unneded synchronize_net().
+
+Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
+Acked-by: Eric Dumazet <edumazet@google.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/bonding/bond_main.c |    3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/drivers/net/bonding/bond_main.c
++++ b/drivers/net/bonding/bond_main.c
+@@ -1955,12 +1955,11 @@ int bond_release(struct net_device *bond
+               return -EINVAL;
+       }
++      write_unlock_bh(&bond->lock);
+       /* unregister rx_handler early so bond_handle_frame wouldn't be called
+        * for this slave anymore.
+        */
+       netdev_rx_handler_unregister(slave_dev);
+-      write_unlock_bh(&bond->lock);
+-      synchronize_net();
+       write_lock_bh(&bond->lock);
+       if (!bond->params.fail_over_mac) {
index 0d4bd0ab748fedebc9431f48ecef189fc3cedaaa..49e04042bb75631e1bdee4ba6f37c7674af3e6f8 100644 (file)
@@ -122,3 +122,4 @@ net-fix-the-use-of-this_cpu_ptr.patch
 net-fq_codel-fix-off-by-one-error.patch
 pch_gbe-fix-ip_summed-checksum-reporting-on-rx.patch
 smsc75xx-fix-jumbo-frame-support.patch
+bonding-get-netdev_rx_handler_unregister-out-of-locks.patch