Page MenuHomeFreeBSD

ena: Add unlikely to error checks
Needs ReviewPublic

Authored by osamaabb_amazon.com on Aug 20 2024, 8:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 2:25 PM
Unknown Object (File)
Mon, Sep 22, 3:18 PM
Unknown Object (File)
Sun, Sep 14, 9:54 AM
Unknown Object (File)
Sep 6 2025, 2:59 PM
Unknown Object (File)
Aug 17 2025, 1:32 PM
Unknown Object (File)
Jun 22 2025, 6:40 AM
Unknown Object (File)
Jun 20 2025, 2:46 AM
Unknown Object (File)
Jun 17 2025, 3:18 AM
Subscribers

Details

Reviewers
cperciva
Summary

The unlikely mechanism is used to reduce pipe flush,
caused by a wrong branch prediction.
Moreover, it increases readability by wrapping unexpected errors.
This commit adds unlikely to error checks that are unlikely to happen.

Approved by: cperciva
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 59074
Build 55961: arc lint + arc unit