Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit a1e10f7e authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

libata: move EH repeat reporting into ata_eh_report()


EH is sometimes repeated without any error or action.  For example,
this happens when probing IDENTIFY fails because of a phantom device.
In these cases, all the repeated EH does is making sure there is no
unhandled error or pending action and return.  This repeation is
necessary to avoid losing any event which occurred while EH was in
progress.

Unfortunately, this dry run causes annonying "EH pending after
completion" message.  This patch moves the repeat reporting into
ata_eh_report() such that it's more compact and skipped on dry runs.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Cc: Mikael Pettersson <mikep@it.uu.se>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent cbcdd875
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