net/ibmvnic: prevent more than one thread from running in reset
authorJuliet Kim <julietk@linux.vnet.ibm.com>
Fri, 20 Sep 2019 20:11:23 +0000 (16:11 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Sep 2019 11:41:41 +0000 (13:41 +0200)
commit7ed5b31f4a6695a21f617df07646e9b15c6c1d29
tree39af057ff37d6c677c89f83279134ee22aace6ab
parentb27507bb59ed504d7fa4d6a35f25a8cc39903b54
net/ibmvnic: prevent more than one thread from running in reset

The current code allows more than one thread to run in reset. This can
corrupt struct adapter data. Check adapter->resetting before performing
a reset, if there is another reset running delay (100 msec) before trying
again.

Signed-off-by: Juliet Kim <julietk@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h