[SCSI] ipr: Return better qc_issue errors
If qc_issue fails for some reason, return a better error to libata. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
e435340c4b
commit
0feeed823a
@@ -5128,7 +5128,7 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc)
|
|||||||
struct ipr_ioarcb_ata_regs *regs;
|
struct ipr_ioarcb_ata_regs *regs;
|
||||||
|
|
||||||
if (unlikely(!ioa_cfg->allow_cmds || ioa_cfg->ioa_is_dead))
|
if (unlikely(!ioa_cfg->allow_cmds || ioa_cfg->ioa_is_dead))
|
||||||
return -EIO;
|
return AC_ERR_SYSTEM;
|
||||||
|
|
||||||
ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg);
|
ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg);
|
||||||
ioarcb = &ipr_cmd->ioarcb;
|
ioarcb = &ipr_cmd->ioarcb;
|
||||||
@@ -5173,7 +5173,7 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
WARN_ON(1);
|
WARN_ON(1);
|
||||||
return -1;
|
return AC_ERR_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
mb();
|
mb();
|
||||||
|
Reference in New Issue
Block a user