mirror of https://gitee.com/openkylin/linux.git
Merge branch 'ionic-watchdog-training'
Shannon Nelson says: ==================== ionic watchdog training Our link watchdog displayed a couple of unfriendly behaviors in some recent stress testing. These patches change the startup and stop timing in order to be sure that expected structures are ready to be used by the watchdog. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
11789fe776
|
@ -350,7 +350,7 @@ static int ionic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
err_out_reset:
|
||||
ionic_reset(ionic);
|
||||
err_out_teardown:
|
||||
ionic_dev_teardown(ionic);
|
||||
del_timer_sync(&ionic->watchdog_timer);
|
||||
pci_clear_master(pdev);
|
||||
/* Don't fail the probe for these errors, keep
|
||||
* the hw interface around for inspection
|
||||
|
@ -378,6 +378,8 @@ static void ionic_remove(struct pci_dev *pdev)
|
|||
if (!ionic)
|
||||
return;
|
||||
|
||||
del_timer_sync(&ionic->watchdog_timer);
|
||||
|
||||
if (ionic->lif) {
|
||||
ionic_devlink_unregister(ionic);
|
||||
ionic_lif_unregister(ionic->lif);
|
||||
|
@ -389,7 +391,6 @@ static void ionic_remove(struct pci_dev *pdev)
|
|||
|
||||
ionic_port_reset(ionic);
|
||||
ionic_reset(ionic);
|
||||
ionic_dev_teardown(ionic);
|
||||
pci_clear_master(pdev);
|
||||
ionic_unmap_bars(ionic);
|
||||
pci_release_regions(pdev);
|
||||
|
|
|
@ -19,9 +19,12 @@ static void ionic_watchdog_cb(struct timer_list *t)
|
|||
mod_timer(&ionic->watchdog_timer,
|
||||
round_jiffies(jiffies + ionic->watchdog_period));
|
||||
|
||||
if (!ionic->lif)
|
||||
return;
|
||||
|
||||
hb = ionic_heartbeat_check(ionic);
|
||||
|
||||
if (hb >= 0 && ionic->lif)
|
||||
if (hb >= 0)
|
||||
ionic_link_status_check_request(ionic->lif, false);
|
||||
}
|
||||
|
||||
|
@ -98,11 +101,6 @@ int ionic_dev_setup(struct ionic *ionic)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void ionic_dev_teardown(struct ionic *ionic)
|
||||
{
|
||||
del_timer_sync(&ionic->watchdog_timer);
|
||||
}
|
||||
|
||||
/* Devcmd Interface */
|
||||
int ionic_heartbeat_check(struct ionic *ionic)
|
||||
{
|
||||
|
|
|
@ -283,7 +283,6 @@ static inline bool ionic_q_has_space(struct ionic_queue *q, unsigned int want)
|
|||
|
||||
void ionic_init_devinfo(struct ionic *ionic);
|
||||
int ionic_dev_setup(struct ionic *ionic);
|
||||
void ionic_dev_teardown(struct ionic *ionic);
|
||||
|
||||
void ionic_dev_cmd_go(struct ionic_dev *idev, union ionic_dev_cmd *cmd);
|
||||
u8 ionic_dev_cmd_status(struct ionic_dev *idev);
|
||||
|
|
Loading…
Reference in New Issue