summaryrefslogtreecommitdiff
path: root/rust/syn/ext.rs
diff options
context:
space:
mode:
authorChaohai Chen <wdhh6@aliyun.com>2025-12-06 14:06:16 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2025-12-08 22:08:31 -0500
commit362432e9b9aefb914ab7d9f86c9fc384a6620c41 (patch)
treee35d3be4b364e5484046d2eeaa110e81d205b605 /rust/syn/ext.rs
parentfd81bc5cca8fc6936a8988de6b5d4c5693b6587e (diff)
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>
Diffstat (limited to 'rust/syn/ext.rs')
0 files changed, 0 insertions, 0 deletions