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
F164589928: D55392.id179013.diff
Sun, Aug 2, 5:51 AM
Unknown Object (File)
Sat, Aug 1, 4:54 PM
Unknown Object (File)
Sat, Aug 1, 5:42 AM
Unknown Object (File)
Mon, Jul 27, 11:10 PM
Unknown Object (File)
Mon, Jul 27, 11:36 AM
Unknown Object (File)
Sat, Jul 25, 10:04 PM
Unknown Object (File)
Thu, Jul 23, 2:57 AM
Unknown Object (File)
Wed, Jul 15, 7:08 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