Use a switch rather than a nested if to simplify the async event
processing code. No functional changes intended.
Sponsored by: Netflix
Differential D35038
cam: Small reorg of ata xpt async code imp on Apr 24 2022, 2:32 AM. Authored by Tags None Referenced Files
Subscribers None
Details
Use a switch rather than a nested if to simplify the async event Sponsored by: Netflix
Diff Detail
Event TimelineComment Actions That's a good idea. I know that nvme did it with a case statement, but I didn't look closely at scsi. thanks for suggesting I do that. It looks like the SCSI code does this already, except it always calls cam_perhip_async(), which may have been your comment on a different review. I think ATA and SCSI (and others) should do it the same. |