search for: br_netproto_lock

Displaying 2 results from an estimated 2 matches for "br_netproto_lock".

2007 Apr 18
1
[Bridge] [PATCH 2.4] bridge - eliminate br_ioctl_mutex
...} -static void __br_clear_ioctl_hook(void) -{ - br_ioctl_hook = NULL; -} - static void __exit br_deinit(void) { unregister_netdevice_notifier(&br_device_notifier); - br_call_ioctl_atomic(__br_clear_ioctl_hook); + + rtnl_lock(); + br_ioctl_hook = NULL; + rtnl_unlock(); br_write_lock_bh(BR_NETPROTO_LOCK); br_handle_frame_hook = NULL; diff -Nru a/net/bridge/br_ioctl.c b/net/bridge/br_ioctl.c --- a/net/bridge/br_ioctl.c 2004-06-21 07:46:49 -07:00 +++ b/net/bridge/br_ioctl.c 2004-06-21 07:46:49 -07:00 @@ -16,6 +16,7 @@ #include <linux/kernel.h> #include <linux/if_bridge.h> #include &...
2003 May 08
0
[Bug 91] New: conntrack unload loops forever (reproducible)
...reproduce it. some printks in conntrack unload path showed it clears out the entire hash table but loops infinitely to clear some more because ip_conntrack_count doesn't reach 0 which means that there are still packet with references to some conntrack structures in the stack. this suggests the BR_NETPROTO_LOCK barrier in ip_conntrack_cleanup doesn't work as expected. to reproduce try this: - start downloading something over _slow_ line from the box running ip_conntrack - rmmod ip_conntrack i noted it always hangs when netstat shows packets in the sendqueue of a socket. i don't think data in the...