commit | 496a60cdcd5d0d884dddf6c3b4ea912923a70f13 | [log] [tgz] |
---|---|---|
author | Eric W. Biederman <ebiederm@xmission.com> | Wed May 13 17:02:50 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon May 18 22:16:00 2009 -0700 |
tree | dd7c3e4e61d4c4bead3c7bd3db17401431e6d87e | |
parent | 26574401fef6766f6c3ca25b5c13febe662d2a32 [diff] |
net: FIX bonding sysfs rtnl_lock deadlock Sysfs files for a network device can not unconditionally take the rtnl_lock as the bonding sysfs files do. If someone accesses those sysfs files while the network device is being unregistered with the rtnl_lock held we will deadlock. So use trylock and restart_syscall to avoid this problem. Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>