diff options
author | John Garry <john.garry@huawei.com> | 2016-08-24 19:05:48 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-08-25 22:38:54 -0400 |
commit | 40f2702b57eb16ef918a0d328201043eb43438a3 (patch) | |
tree | 57292cb303b709f222cbe5fc10a59a58537b8488 /drivers/scsi/hisi_sas | |
parent | 441c27401470c417cf4a33ab9c17bcefdf1ecca3 (diff) | |
download | lwn-40f2702b57eb16ef918a0d328201043eb43438a3.tar.gz lwn-40f2702b57eb16ef918a0d328201043eb43438a3.zip |
scsi: hisi_sas: add internal abort in hisi_sas_dev_gone()
Execute an internal abort for that device when it is removed, so that
commands for that device are not processed.
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 763c6c58e4b9..c4e59cd8ff7b 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -621,6 +621,9 @@ static void hisi_sas_dev_gone(struct domain_device *device) dev_info(dev, "found dev[%lld:%x] is gone\n", sas_dev->device_id, sas_dev->dev_type); + hisi_sas_internal_task_abort(hisi_hba, device, + HISI_SAS_INT_ABT_DEV, 0); + hisi_hba->hw->free_device(hisi_hba, sas_dev); device->lldd_dev = NULL; memset(sas_dev, 0, sizeof(*sas_dev)); |