search for: br_write_lock_bh

Displaying 1 result from an estimated 1 matches for "br_write_lock_bh".

2007 Apr 18
1
[Bridge] [PATCH 2.4] bridge - eliminate br_ioctl_mutex
...@@ return 0; } -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....