From: Eric W. Biederman Date: Wed, 13 May 2009 17:02:50 +0000 (+0000) Subject: net: FIX bonding sysfs rtnl_lock deadlock X-Git-Tag: v2.6.31-rc1~330^2~362 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=496a60cdcd5d0d884dddf6c3b4ea912923a70f13;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed