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)
Wed, Jul 15, 7:08 AM
Unknown Object (File)
Wed, Jul 15, 7:08 AM
Unknown Object (File)
Sun, Jul 12, 11:19 PM
Unknown Object (File)
Wed, Jul 8, 4:52 AM
Unknown Object (File)
Tue, Jul 7, 2:06 AM
Unknown Object (File)
Mon, Jul 6, 4:59 AM
Unknown Object (File)
Sun, Jul 5, 8:15 PM
Unknown Object (File)
Tue, Jun 30, 8:10 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 Not Applicable
Unit
Tests Not Applicable