Skip to content

Commit 037b480

Browse files
Xingui Yangmartinkpetersen
authored andcommitted
scsi: hisi_sas: Use abort task set to reset SAS disks when discovered
Currently clear task set is used to abort all commands remaining in the disk when the SAS disk is discovered, and if the disk is discovered by two initiators, other I_T nexuses are also affected. So use abort task set instead and take effect only on the specified I_T nexus. Signed-off-by: Xingui Yang <yangxingui@huawei.com> Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Link: https://lore.kernel.org/r/1672805000-141102-2-git-send-email-chenxiang66@hisilicon.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent a67aad5 commit 037b480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/hisi_sas/hisi_sas_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int hisi_sas_init_device(struct domain_device *device)
704704
int_to_scsilun(0, &lun);
705705

706706
while (retry-- > 0) {
707-
rc = sas_clear_task_set(device, lun.scsi_lun);
707+
rc = sas_abort_task_set(device, lun.scsi_lun);
708708
if (rc == TMF_RESP_FUNC_COMPLETE) {
709709
hisi_sas_release_task(hisi_hba, device);
710710
break;

0 commit comments

Comments
 (0)