Page MenuHomeFreeBSD

cam: Small reorg of ata xpt async code
ClosedPublic

Authored by imp on Apr 24 2022, 2:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 20, 8:26 AM
Unknown Object (File)
Nov 26 2025, 9:09 PM
Unknown Object (File)
Nov 25 2025, 10:42 AM
Unknown Object (File)
Nov 16 2025, 7:51 PM
Unknown Object (File)
Nov 16 2025, 5:32 PM
Unknown Object (File)
Nov 6 2025, 8:01 AM
Unknown Object (File)
Oct 31 2025, 4:31 AM
Unknown Object (File)
Oct 15 2025, 3:20 AM
Subscribers
None

Details

Summary

Use a switch rather than a nested if to simplify the async event
processing code. No functional changes intended.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45336
Build 42224: arc lint + arc unit

Event Timeline

imp requested review of this revision.Apr 24 2022, 2:32 AM
This revision is now accepted and ready to land.Apr 25 2022, 3:01 PM
This revision was automatically updated to reflect the committed changes.

Are you going to do the same for SCSI to not diverge them?

In D35038#794530, @mav wrote:

Are you going to do the same for SCSI to not diverge them?

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.