]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17faf8609cd04e59d8e7eef32fd71e17c8ac46ae
tree759632280396301ec5bc5fe6621f559d88994e12
parent9bfb3ecbdf67c03f0bfe1ba997eaa15880e5adb8
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