diff options
author | dingtianhong <dingtianhong@huawei.com> | 2014-02-10 16:33:59 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-10 16:54:29 -0800 |
commit | 6b8790b5006b5ca3ee1c039c3c909833d7958716 (patch) | |
tree | 8604c7edd2a28c6ecc50e31a26932413823d9016 /drivers/net/bonding | |
parent | 19a38d8e0aa33b4f4d11d3b4baa902ad169daa80 (diff) | |
download | op-kernel-dev-6b8790b5006b5ca3ee1c039c3c909833d7958716.zip op-kernel-dev-6b8790b5006b5ca3ee1c039c3c909833d7958716.tar.gz |
bonding: remove unwanted bond lock for enslave processing
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>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 35f7e90..71ba18e 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -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); |