bridge deadlock on device removal
Subsystems (3)
PATCH 1/1 bridge deadlock on device removal
Fixes: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=131569
Dead lock in bridge when removing device interface module. br_del_if assumes br->lock not held.
This fixes case of:
brctl addbr b0
brctl addif b0 eth0
rmmod eth0
Signed-off-by Stephen Hemminger <[email protected]>
net/bridge/br_notify.c +3 -1
@@ -76,10 +76,12 @@break ;case NETDEV_UNREGISTER : +spin_unlock_bh (&br->lock);br_del_if (br, dev); -break ; + goto done; }spin_unlock_bh (&br->lock); + done:return NOTIFY_DONE ; }
David S. Miller
maintainerQuoted 10 lines · On Mon, 6 Sep 2004 05:15:23 -0700 Stephen Hemminger <[email protected]> wrote:
Fixes: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=131569
Dead lock in bridge when removing device interface module.br_del_ifassumesbr->locknot held.This fixes case of:
brctl addbr b0
brctl addif b0 eth0
rmmod eth0Signed-off-by Stephen Hemminger <[email protected]>
Will apply, thanks Stephen.
Is this a 2.6.x only issue?