net: Fix ipoib rtnl_lock sysfs deadlock.
commit26574401fef6766f6c3ca25b5c13febe662d2a32
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 13 May 2009 17:01:51 +0000 (13 17:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2009 05:15:59 +0000 (18 22:15 -0700)
treef3ef9fe491dbdece50d77ccc56bb797727b91375
parentaf38f2989572704a846a5577b5ab3b1e2885cbfb
net: Fix ipoib rtnl_lock sysfs deadlock.

Network device sysfs files that grab the rtnl_lock unconditionally
will deadlock if accessed when the network device is being
unregistered.  So use trylock and syscall_restart to avoid this
deadlock.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c