libata: clear ering on resume
authorTejun Heo <tj@kernel.org>
Thu, 23 Apr 2009 00:55:28 +0000 (09:55 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 11 May 2009 18:30:59 +0000 (14:30 -0400)
Error timestamps are in jiffies which doesn't run while suspended and
PHY events during resume isn't too uncommon.  When the two are
combined, it can lead to unnecessary speed downs if the machine is
suspended and resumed repeatedly.  Clear error history on resume.

This was reported and verified in bnc#486803 by Vladimir Botka.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Vladimir Botka <vbotka@novell.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

No differences found