From: Gavin Shan Date: Thu, 23 Jan 2014 04:27:35 +0000 (+0800) Subject: net/cxgb4: Don't retrieve stats during recovery X-Git-Tag: v3.14-rc1~94^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fe6cb58378c3b8535e00dab7195b5d35defa17a;p=pandora-kernel.git net/cxgb4: Don't retrieve stats during recovery We possibly retrieve the adapter's statistics during EEH recovery and that should be disallowed. Otherwise, it would possibly incur replicate EEH error and EEH recovery is going to fail eventually. The patch reuses statistics lock and checks net_device is attached before going to retrieve statistics, so that the problem can be avoided. Signed-off-by: Gavin Shan Signed-off-by: David S. Miller --- Reading git-diff-tree failed