From: Eric W. Biederman Date: Wed, 13 May 2009 17:00:41 +0000 (+0000) Subject: net: Fix bridgeing sysfs handling of rtnl_lock X-Git-Tag: v2.6.31-rc1~330^2~364 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af38f2989572704a846a5577b5ab3b1e2885cbfb;p=pandora-kernel.git net: Fix bridgeing sysfs handling of rtnl_lock Holding rtnl_lock when we are unregistering the sysfs files can deadlock if we unconditionally take rtnl_lock in a sysfs file. So fix it with the now familiar patter of: rtnl_trylock and syscall_restart() Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller --- Reading git-diff-tree failed