search for: ioctl_mutex

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

2007 Apr 18
1
[Bridge] [PATCH 2.4] bridge - eliminate br_ioctl_mutex
...@@ -16,6 +16,7 @@ #include <linux/kernel.h> #include <linux/if_bridge.h> #include <linux/inetdevice.h> +#include <linux/rtnetlink.h> #include <asm/uaccess.h> #include "br_private.h" @@ -230,11 +231,8 @@ return -EOPNOTSUPP; } -static DECLARE_MUTEX(ioctl_mutex); - int br_ioctl_deviceless_stub(unsigned long arg) { - int err; unsigned long i[3]; if (!capable(CAP_NET_ADMIN)) @@ -243,11 +241,8 @@ if (copy_from_user(i, (void *)arg, 3*sizeof(unsigned long))) return -EFAULT; - down(&ioctl_mutex); - err = br_ioctl_deviceless(i[0], i[1], i[2]);...
2007 Apr 18
2
[Bridge] bridge_list orphans in linux-2.4
...oked through the bridge module and it seems that the most likely explanation is that bridge_list in br_if.c has become corrupted, causing the bridge called "ourbridgename" to become orphaned. I cannot see how this would happen, however, since bridge_list is only ever referenced under the ioctl_mutex. I should also point out that br_del_bridge() is not called by our application. I noticed that in later kernels the ioctl_mutex has been replaced by the rtnl_lock(). Why was this done? Could this be related to our problem? TIA, Alex