提交 d3e2edb7 编写于 作者: A Ashish Shah 提交者: David S. Miller

i40evf: do not re-arm watchdog after remove

Add in an adapter state check to prevent re-arming watchdog timer after
i40evf_remove has been called and timer has been deleted.

Change-ID: I636ba7c6322be8cbf053231959f90c0a2d8d803a
Signed-off-by: NAshish Shah <ashish.n.shah@intel.com>
Tested-by: NSibai Li <sibai.li@intel.com>
Signed-off-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 fd35886a
...@@ -1403,6 +1403,8 @@ static void i40evf_watchdog_task(struct work_struct *work) ...@@ -1403,6 +1403,8 @@ static void i40evf_watchdog_task(struct work_struct *work)
watchdog_done: watchdog_done:
clear_bit(__I40EVF_IN_CRITICAL_TASK, &adapter->crit_section); clear_bit(__I40EVF_IN_CRITICAL_TASK, &adapter->crit_section);
restart_watchdog: restart_watchdog:
if (adapter->state == __I40EVF_REMOVE)
return;
if (adapter->aq_required) if (adapter->aq_required)
mod_timer(&adapter->watchdog_timer, mod_timer(&adapter->watchdog_timer,
jiffies + msecs_to_jiffies(20)); jiffies + msecs_to_jiffies(20));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册