For this specific test we don't seem to run a hardreset after theThis is an unaligned write to a sequential write required zone on SMR. So
autopsy, but we do seem to be getting an NCQ error. That's interesting.
We have noticed this scenario for hisi_sas NCQ error, whereby the
autopsy decided a reset is not required or useful, such as a medium
error. Anyway the pm8001 driver relies on the reset being run always for
the NCQ error. So I am thinking of tweaking sas_ata_link_abort() as follows:
void sas_ata_link_abort(struct domain_device *device)
{
struct ata_port *ap = device->sata_dev.ap;
struct ata_link *link = &ap->link;
link->eh_info.err_mask |= AC_ERR_DEV;
+ link->eh_info.action |= ATA_EH_RESET;
ata_link_abort(link);
}
This should force a reset.
definitely not worth a reset. Forcing hard resetting the link for such error is
an overkill. I think it is better to let ata_link_abort() -> ... -> scsi & ata
EH decide on the disposition.
Note that patch 3 did not apply cleanly to the current Linus tree. So a rebase
for the series is needed.