[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100204.122931.189315763.davem@davemloft.net>
Date: Thu, 04 Feb 2010 12:29:31 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: ron.mercer@...gic.com
Cc: netdev@...r.kernel.org
Subject: Re: [net-next PATCH 3/3] qlge: Add watchdog timer.
From: Ron Mercer <ron.mercer@...gic.com>
Date: Thu, 4 Feb 2010 12:06:03 -0800
> +static void ql_timer(unsigned long data)
> +{
> + struct ql_adapter *qdev = (struct ql_adapter *)data;
> + u32 var = 0;
> +
> + var = ql_read32(qdev, STS);
> + if (pci_channel_offline(qdev->pdev)) {
> + QPRINTK(qdev, IFUP, ERR, "EEH STS = 0x%.08x.\n", var);
> + return;
> + }
> +
> + add_timer(&qdev->timer);
> +}
> +
Did the timer every fire more than once in your testing?
Don't you need to re-setup the expiration period before
adding it again?
Same goes for all of those sequences where you go:
del_timer_sync(&qdev->timer);
...
add_timer(&qdev->timer);
in the patch.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists