i40evf: fix oops in watchdog handler
authorMitch Williams <[email protected]>
Thu, 6 Mar 2014 08:59:56 +0000 (08:59 +0000)
committerJeff Kirsher <[email protected]>
Fri, 28 Mar 2014 13:53:58 +0000 (06:53 -0700)
commit3526d8005f23da22846bdbdb4ed445ab0038dff0
treea20199ae91437064b0cdee72e3a1bf7e772dc37a
parentce806783bd43f0cd0631d7b2946d503cb912721f
i40evf: fix oops in watchdog handler

The Tx watchdog handler runs in interrupt context, so it would cause an
oops when sending an admin queue message to request a reset, because the
admin queue functions use spinlocks.

Instead, set a flag and let the reset task handle sending the request.

Change-ID: I65879470b72963d9c308edfb8f45ac4fbba2c14f
Signed-off-by: Mitch Williams <[email protected]>
Signed-off-by: Catherine Sullivan <[email protected]>
Tested-by: Sibai Li <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/i40evf/i40evf.h
drivers/net/ethernet/intel/i40evf/i40evf_main.c