]> git.baikalelectronics.ru Git - kernel.git/commit
net/cxgb4: Don't retrieve stats during recovery
authorGavin Shan <shangw@linux.vnet.ibm.com>
Thu, 23 Jan 2014 04:27:35 +0000 (12:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 21:21:03 +0000 (13:21 -0800)
commit364af83f13fe2920111e9643fcb592698fd1da34
treeca9209b3c6b40ce99d095ff0782afe382afd21bc
parentc02e3b75a337edcb256f8a989ee6668429f5b364
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 <shangw@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c