libata-eh: fix slave link EH action mask handling
authorTejun Heo <tj@kernel.org>
Tue, 21 Oct 2008 11:37:21 +0000 (20:37 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 23 Oct 2008 00:40:21 +0000 (20:40 -0400)
commita568d1d2e2aff4f114b087c06bfd350e945ad6cf
tree1eafb8cd7ba2326811a1f33dd785135efdcd8dbf
parent848e4c68c4695beae563f9a3d59fce596b466a74
libata-eh: fix slave link EH action mask handling

Slave link action mask is transferred to master link and all the EH
actions are taken by the master link.  ata_eh_about_to_do() and
ata_eh_done() are called with ATA_EH_ALL_ACTIONS to clear the slave
link actions during transfer.  This always sets ATA_PFLAG_RECOVERED
flag causing spurious "EH complete" messages.

Don't set ATA_PFLAG_RECOVERED for slave link actions.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c