[PATCH] atm: clip causes unregister hang
authorStephen Hemminger <shemminger@osdl.org>
Wed, 12 Apr 2006 21:52:54 +0000 (14:52 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Apr 2006 20:16:06 +0000 (13:16 -0700)
commit23e0ac040b8052729c32dfec78f751d82515e73e
tree1dcc434a1b466ebce512c1c240cd27f6cdd02394
parent18b1e8193eef97f3ac854276a7c4bacbb1bdfbd1
[PATCH] atm: clip causes unregister hang

If Classical IP over ATM module is loaded, its neighbor table gets
populated when permanent neighbor entries are created; but these entries
are not flushed when the device is removed. Since the entry never gets
flushed the unregister of the network device never completes.

This version of the patch also adds locking around the reference to
the atm arp daemon to avoid races with events and daemon state changes.
(Note: barrier() was never really safe)

Bug-reference: http://bugzilla.kernel.org/show_bug.cgi?id=6295

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/atm/clip.c