[BRIDGE]: Fix device delete race.
authorStephen Hemminger <shemminger@osdl.org>
Wed, 1 Feb 2006 01:44:07 +0000 (17:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2006 01:44:07 +0000 (17:44 -0800)
commit3f4cfc2d11c9e29709e6f0f3add54039614d847a
treefe3131288787952d95b578f151dbbf20791951b7
parent5d39a795bfa217b5f7637028c83ab5cb291f37bf
[BRIDGE]: Fix device delete race.

This is a simpler fix for the two races in bridge device removal.
The Xen race of delif and notify is managed now by a new deleted flag.
No need for barriers or other locking because of rtnl mutex.

The del_timer_sync()'s are unnecessary, because br_stp_disable_port
delete's the timers, and they will finish running before RCU callback.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
net/bridge/br_private.h