Commit 8f3b8fa9 authored by Darrick J. Wong's avatar Darrick J. Wong Committed by James Bottomley

[SCSI] aic94xx: Don't eat TMF_QUERY_TASK results

In this driver, TMF_QUERY_TASK translates to QUERY_SSP_TASK.  The
sequencer, it seems, is perfectly happy sending us a SSP response, which
this function promptly "converts" into TMF_RESP_FUNC_FAILED.  This leads to
the SAS EH making bad decisions based on bad data, so we should not perform
the conversion in this case.
Signed-off-by: default avatarDarrick J. Wong <djwong@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent c8490f3a
...@@ -566,6 +566,11 @@ static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, ...@@ -566,6 +566,11 @@ static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun,
res = TMF_RESP_FUNC_ESUPP; res = TMF_RESP_FUNC_ESUPP;
break; break;
default: default:
if (tmf == TMF_QUERY_TASK) {
ASD_DPRINTK("%s: QUERY_SSP_TASK response: 0x%x\n",
__FUNCTION__, res);
break;
}
ASD_DPRINTK("%s: converting result 0x%x to TMF_RESP_FUNC_FAILED\n", ASD_DPRINTK("%s: converting result 0x%x to TMF_RESP_FUNC_FAILED\n",
__FUNCTION__, res); __FUNCTION__, res);
res = TMF_RESP_FUNC_FAILED; res = TMF_RESP_FUNC_FAILED;
......
Markdown is supported
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