Page MenuHomeFreeBSD

LinuxKPi: idr: use macros for lock idr lock operations
Needs ReviewPublic

Authored by bz on Feb 20 2026, 2:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 31, 7:00 AM
Unknown Object (File)
Sun, Mar 22, 6:22 AM
Unknown Object (File)
Mar 3 2026, 9:32 AM
Unknown Object (File)
Feb 25 2026, 9:25 PM
Unknown Object (File)
Feb 25 2026, 11:47 AM
Unknown Object (File)
Feb 25 2026, 9:37 AM
Unknown Object (File)
Feb 25 2026, 7:19 AM
Unknown Object (File)
Feb 25 2026, 2:33 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
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