]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: don't call slave_xxx_netpoll under spinlocks
authordingtianhong <dingtianhong@huawei.com>
Tue, 23 Jul 2013 07:25:27 +0000 (15:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2013 00:45:23 +0000 (17:45 -0700)
commit63513f5b8cd9e974f41c98962d7e8d0e5f3b61f0
tree8e2f3c51ee4b7bfdf91b85e1b1760189e61eb649
parent3ce6cd9c895d0f0f6b997cdc9b63f006d5403d1d
bonding: don't call slave_xxx_netpoll under spinlocks

The slave_xxx_netpoll will call synchronize_rcu_bh(),
so the function may schedule and sleep, it should't be
called under spinlocks.

bond_netpoll_setup() and bond_netpoll_cleanup() are always
protected by rtnl lock, it is no need to take the read lock,
as the slave list couldn't be changed outside rtnl lock.

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