]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
bonding: remove unwanted bond lock for enslave processing
authordingtianhong <dingtianhong@huawei.com>
Mon, 10 Feb 2014 08:33:59 +0000 (16:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Feb 2014 00:54:29 +0000 (16:54 -0800)
The bond enslave processing don't hold bond->lock anymore,
so release an unlocked rw lock will cause warning message,
remove the unwanted read_unlock(&bond->lock).

Cc: Jay Vosburgh <fubar@us.ibm.com>
Cc: Veaceslav Falico <vfalico@redhat.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 35f7e90aef7286f8b1587cd6c3cebd26e5c085a5..71ba18efa15b545f029655003388ab1da8c19017 100644 (file)
@@ -1510,7 +1510,6 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
        slave_dev->npinfo = bond->dev->npinfo;
        if (slave_dev->npinfo) {
                if (slave_enable_netpoll(new_slave)) {
-                       read_unlock(&bond->lock);
                        pr_info("Error, %s: master_dev is using netpoll, "
                                 "but new slave device does not support netpoll.\n",
                                 bond_dev->name);