scsi: libsas: Add sas_execute_internal_abort_single()
authorJohn Garry <john.garry@huawei.com>
Fri, 11 Mar 2022 12:23:49 +0000 (20:23 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Mar 2022 03:33:23 +0000 (23:33 -0400)
commit5c9bf3635b66add7d829b4d8d538ae0d770d9d89
tree759632280396301ec5bc5fe6621f559d88994e12
parent2ea3a393bfae2e50003ecc14b757736eeba7ea6a
scsi: libsas: Add sas_execute_internal_abort_single()

The internal abort feature is common to hisi_sas and pm8001 HBAs, and the
driver support is similar also, so add a common handler.

Two modes of operation will be supported:

 - single: Abort a single tagged command

 - device: Abort all commands associated with a specific domain device

A new protocol is added, SAS_PROTOCOL_INTERNAL_ABORT, so the common queue
command API may be re-used.

Only add "single" support as a first step.

Link: https://lore.kernel.org/r/1647001432-239276-2-git-send-email-john.garry@huawei.com
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_scsi_host.c
include/scsi/libsas.h
include/scsi/sas.h