]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Bound waits for device queries
authorThomas Falcon <tlfalcon@linux.ibm.com>
Mon, 25 Nov 2019 23:12:55 +0000 (17:12 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Nov 2019 21:19:31 +0000 (13:19 -0800)
commit06bf42e1ea707ef5307ee139a5446b01b9a1a19f
tree1fc9f27d94eade01f30a3ed4629817228f27cf80
parentdeb041f409db4c405c9118e7eac17aca820a7f99
ibmvnic: Bound waits for device queries

Create a wrapper for wait_for_completion calls with additional
driver checks to ensure that the driver does not wait on a
disabled device. In those cases or if the device does not respond
in an extended amount of time, this will allow the driver an
opportunity to recover.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c