Commit d3e2dcdb authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

ionic: fire watchdog again after fw_down

In some cases of fw_down it was called because there was a
fw_generation change, and the firmware is already back up.
In order to keep the down time to a minimum, don't wait for
the next watchdog polling cycle, fire another watchdog off
as soon as we can - an out-of-cycle check won't hurt, and
may well speed up the recovery.
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4af874f4
...@@ -93,10 +93,17 @@ static void ionic_lif_deferred_work(struct work_struct *work) ...@@ -93,10 +93,17 @@ static void ionic_lif_deferred_work(struct work_struct *work)
ionic_link_status_check(lif); ionic_link_status_check(lif);
break; break;
case IONIC_DW_TYPE_LIF_RESET: case IONIC_DW_TYPE_LIF_RESET:
if (w->fw_status) if (w->fw_status) {
ionic_lif_handle_fw_up(lif); ionic_lif_handle_fw_up(lif);
else } else {
ionic_lif_handle_fw_down(lif); ionic_lif_handle_fw_down(lif);
/* Fire off another watchdog to see
* if the FW is already back rather than
* waiting another whole cycle
*/
mod_timer(&lif->ionic->watchdog_timer, jiffies + 1);
}
break; break;
default: default:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment