Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] lpfc 8.2.8 v2 : Revert target busy in favor of transport disrupted

Revert the target busy response in favor of the transport disrupted
response for node state transitions.

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

James Smart and committed by
James Bottomley
b522d7d4 64f84bc1

+4 -4
+4 -4
drivers/scsi/lpfc/lpfc_scsi.c
··· 1071 1071 * Catch race where our node has transitioned, but the 1072 1072 * transport is still transitioning. 1073 1073 */ 1074 - if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) 1075 - goto out_target_busy; 1074 + if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { 1075 + cmnd->result = ScsiResult(DID_TRANSPORT_DISRUPTED, 0); 1076 + goto out_fail_command; 1077 + } 1076 1078 1077 1079 lpfc_cmd = lpfc_get_scsi_buf(phba); 1078 1080 if (lpfc_cmd == NULL) { ··· 1120 1118 lpfc_release_scsi_buf(phba, lpfc_cmd); 1121 1119 out_host_busy: 1122 1120 return SCSI_MLQUEUE_HOST_BUSY; 1123 - out_target_busy: 1124 - return SCSI_MLQUEUE_TARGET_BUSY; 1125 1121 1126 1122 out_fail_command: 1127 1123 done(cmnd);