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)
Nov 21 2024, 11:04 AM
Unknown Object (File)
Oct 4 2024, 8:04 PM
Unknown Object (File)
Oct 1 2024, 2:09 PM
Unknown Object (File)
Sep 30 2024, 9:50 PM
Unknown Object (File)
Sep 23 2024, 9:29 AM
Unknown Object (File)
Sep 23 2024, 7:10 AM
Unknown Object (File)
Sep 16 2024, 11:25 PM
Unknown Object (File)
Sep 14 2024, 9:20 PM
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