summaryrefslogtreecommitdiff
path: root/include/scsi
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2022-02-17 18:42:40 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-19 23:59:35 +0300
commit693e66a0a6ac56322687f614ba6e8bfbc43a1530 (patch)
tree3a864d24c5e70bec244a9f7a6d5178b5985274e0 /include/scsi
parent2037a340314f4be8977563006476bd15c859eda2 (diff)
downloadlinux-693e66a0a6ac56322687f614ba6e8bfbc43a1530.tar.xz
scsi: libsas: Add TMF handler aborted callback
The hisi_sas and pm8001 TMF handlers have some special processing for when the TMF is aborted, so add a callback and fill it in for those drivers. Link: https://lore.kernel.org/r/1645112566-115804-13-git-send-email-john.garry@huawei.com Tested-by: Yihang Li <liyihang6@hisilicon.com> Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/libsas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h
index dd6551e809a0..c44de478e314 100644
--- a/include/scsi/libsas.h
+++ b/include/scsi/libsas.h
@@ -654,6 +654,7 @@ struct sas_domain_function_template {
/* Special TMF callbacks */
void (*lldd_tmf_exec_complete)(struct domain_device *dev);
+ void (*lldd_tmf_aborted)(struct sas_task *task);
/* Port and Adapter management */
int (*lldd_clear_nexus_port)(struct asd_sas_port *);