mirror-linux/drivers/scsi/libsas
Chaohai Chen 362432e9b9 scsi: libsas: Add rollback handling when an error occurs
In sas_register_phys(), if an error is triggered in the loop process, we
need to roll back the resources that have already been requested.

Add sas_unregister_phys() when an error occurs in sas_register_ha().

[mkp: a few coding style tweaks and address John's comment]

Signed-off-by: Chaohai Chen <wdhh6@aliyun.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20251206060616.69216-1-wdhh6@aliyun.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2025-12-08 22:08:31 -05:00
..
Kconfig scsi: libsas: Drop BLK_DEV_BSGLIB selection 2021-07-27 00:06:42 -04:00
Makefile scsi: libsas: Allow libsas to include SCSI header files directly 2021-07-20 23:11:17 -04:00
sas_ata.c SCSI misc on 20250806 2025-08-06 15:44:25 +03:00
sas_discover.c scsi: libsas: Use a bool for sas_deform_port() second argument 2025-07-25 09:03:57 -04:00
sas_event.c scsi: libsas: Use bool for queue_work() return code 2022-02-27 21:48:30 -05:00
sas_expander.c scsi: libsas: Add dev_parent_is_expander() helper 2025-08-18 22:08:30 -04:00
sas_host_smp.c scsi: libsas: Delete struct scsi_core 2023-08-21 17:50:58 -04:00
sas_init.c scsi: libsas: Add rollback handling when an error occurs 2025-12-08 22:08:31 -05:00
sas_internal.h scsi: libsas: Add rollback handling when an error occurs 2025-12-08 22:08:31 -05:00
sas_phy.c scsi: libsas: Add rollback handling when an error occurs 2025-12-08 22:08:31 -05:00
sas_port.c scsi: libsas: Use a bool for sas_deform_port() second argument 2025-07-25 09:03:57 -04:00
sas_scsi_host.c scsi: switch ->bios_param() to passing gendisk 2025-08-13 02:59:28 -04:00
sas_task.c scsi: libsas: Use enum for response frame DATAPRES field 2022-02-19 15:59:34 -05:00