net-sysfs: Use rtnl_trylock in wireless sysfs methods.
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 19 Feb 2010 13:23:47 +0000 (13:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2010 23:40:51 +0000 (15:40 -0800)
commitb8afe6416101549e877f8470f2a160df69676166
tree34020e2ceece02d144bb88df908aad7ef95539bf
parent88af182e389097997c5e2a0b42285b3522796759
net-sysfs: Use rtnl_trylock in wireless sysfs methods.

The wireless sysfs methods like the rest of the networking sysfs
methods are removed with the rtnl_lock held and block until
the existing methods stop executing.  So use rtnl_trylock
and restart_syscall so that the code continues to work.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c