From: Eric W. Biederman Date: Wed, 13 May 2009 16:57:25 +0000 (+0000) Subject: net-sysfs: Use rtnl_trylock in sysfs methods. X-Git-Tag: v2.6.31-rc1~330^2~367 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=336ca57c3b4e2b58ea3273e6d978ab3dfa387b4c;p=pandora-kernel.git net-sysfs: Use rtnl_trylock in sysfs methods. The earlier patch to fix the deadlock between a network device going away and writing to sysfs attributes was incomplete. - It did not set signal_pending so we would leak ERSTARTSYS to user space. - It used ERESTARTSYS which only restarts if sigaction configures it to. - It did not cover store and show for ifalias. So fix all of these up and use the new helper restart_syscall so we get the details correct on what it takes. Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller --- Reading git-diff-tree failed