|
@@ -3,7 +3,7 @@
|
|
*
|
|
*
|
|
* Interface to Linux SCSI midlayer.
|
|
* Interface to Linux SCSI midlayer.
|
|
*
|
|
*
|
|
- * Copyright IBM Corp. 2002, 2016
|
|
|
|
|
|
+ * Copyright IBM Corp. 2002, 2017
|
|
*/
|
|
*/
|
|
|
|
|
|
#define KMSG_COMPONENT "zfcp"
|
|
#define KMSG_COMPONENT "zfcp"
|
|
@@ -278,7 +278,7 @@ static int zfcp_task_mgmt_function(struct scsi_cmnd *scpnt, u8 tm_flags)
|
|
|
|
|
|
if (!(atomic_read(&adapter->status) &
|
|
if (!(atomic_read(&adapter->status) &
|
|
ZFCP_STATUS_COMMON_RUNNING)) {
|
|
ZFCP_STATUS_COMMON_RUNNING)) {
|
|
- zfcp_dbf_scsi_devreset("nres", scpnt, tm_flags);
|
|
|
|
|
|
+ zfcp_dbf_scsi_devreset("nres", scpnt, tm_flags, NULL);
|
|
return SUCCESS;
|
|
return SUCCESS;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -288,10 +288,10 @@ static int zfcp_task_mgmt_function(struct scsi_cmnd *scpnt, u8 tm_flags)
|
|
wait_for_completion(&fsf_req->completion);
|
|
wait_for_completion(&fsf_req->completion);
|
|
|
|
|
|
if (fsf_req->status & ZFCP_STATUS_FSFREQ_TMFUNCFAILED) {
|
|
if (fsf_req->status & ZFCP_STATUS_FSFREQ_TMFUNCFAILED) {
|
|
- zfcp_dbf_scsi_devreset("fail", scpnt, tm_flags);
|
|
|
|
|
|
+ zfcp_dbf_scsi_devreset("fail", scpnt, tm_flags, fsf_req);
|
|
retval = FAILED;
|
|
retval = FAILED;
|
|
} else {
|
|
} else {
|
|
- zfcp_dbf_scsi_devreset("okay", scpnt, tm_flags);
|
|
|
|
|
|
+ zfcp_dbf_scsi_devreset("okay", scpnt, tm_flags, fsf_req);
|
|
zfcp_scsi_forget_cmnds(zfcp_sdev, tm_flags);
|
|
zfcp_scsi_forget_cmnds(zfcp_sdev, tm_flags);
|
|
}
|
|
}
|
|
|
|
|