Page MenuHomeFreeBSD

LinuxKPi: idr: use macros for lock idr lock operations
ClosedPublic

Authored by bz on Feb 20 2026, 2:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 5:10 PM
Unknown Object (File)
Thu, Jun 4, 2:48 PM
Unknown Object (File)
Thu, Jun 4, 2:47 PM
Unknown Object (File)
Wed, Jun 3, 9:53 PM
Unknown Object (File)
Fri, May 15, 8:18 PM
Unknown Object (File)
Fri, May 15, 8:10 PM
Unknown Object (File)
Apr 27 2026, 12:34 PM
Unknown Object (File)
Apr 27 2026, 11:38 AM
Subscribers

Details

Summary

Our idr implementation is using a mtx lock which in the past has
already caused problems (613723bac219c).
In order to make it easier to tackle the problem start by factoring
out all the operations related to the idr->lock into macros as we
have often done in other parts of code as well.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70810
Build 67693: arc lint + arc unit