提交 4d086f6b 编写于 作者: I Ilgu Hong 提交者: James Bottomley

[SCSI] scsi dh alua: handle report luns data changed in check sense callout

When we switch controllers the Intel Multi-Flex reports
REPORTED_LUNS_DATA_HAS_CHANGED. This patch just has us
retry the command.
Signed-off-by: NIlgu Hong <ilgu.hong@promise.com>
Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
上级 49baef0a
...@@ -461,6 +461,15 @@ static int alua_check_sense(struct scsi_device *sdev, ...@@ -461,6 +461,15 @@ static int alua_check_sense(struct scsi_device *sdev,
*/ */
return ADD_TO_MLQUEUE; return ADD_TO_MLQUEUE;
} }
if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x0e) {
/*
* REPORTED_LUNS_DATA_HAS_CHANGED is reported
* when switching controllers on targets like
* Intel Multi-Flex. We can just retry.
*/
return ADD_TO_MLQUEUE;
}
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册