]> err.no Git - linux-2.6/commit
[PATCH] bonding: fix deadlock on high loads in bond_alb_monitor()
authorKarsten Keil <kkeil@suse.de>
Sat, 30 Sep 2006 06:28:42 +0000 (23:28 -0700)
committerJeff Garzik <jeff@garzik.org>
Thu, 5 Oct 2006 11:01:25 +0000 (07:01 -0400)
commit39984a9fad0c642182f426d7771332d46f222103
treec57cec6ca1411d276fe959535b2b116167b11314
parent0a07bc645e818b88559d99f52ad45e35352e8228
[PATCH] bonding: fix deadlock on high loads in bond_alb_monitor()

In bond_alb_monitor the bond->curr_slave_lock write lock is taken
and then dev_set_promiscuity maybe called which can take some time,
depending on the network HW. If a network IRQ for this card come in
the softirq handler maybe try to deliver more packets which end up in
a request to the read lock of bond->curr_slave_lock -> deadlock.
This issue was found by a test lab during network stress tests, this patch
disable the softirq handler for this case and solved the issue.

Signed-off-by: Karsten Keil <kkeil@suse.de>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_alb.c