Now
riastradh-drm2 commitmail json YAML
src/sys/external/bsd/drm2/include/linux/idr.h@1.1.2.7
/
diff
/
nxr@1.1.2.7
src/sys/external/bsd/drm2/linux/linux_idr.c@1.1.2.10 / diff / nxr@1.1.2.10
src/sys/external/bsd/drm2/linux/linux_idr.c@1.1.2.10 / diff / nxr@1.1.2.10
Rewrite idr to use a dumber algorithm that admits pserialized use.
drm2 doesn't use them with RCU, but it does use them under spin locks,
so an rwlock is not kosher.
This algorithm is super-dumb, but the idr API has changed upstream,
and this is not performance-critical, so it's not worth investing
time in a better algorithm at the moment.
drm2 doesn't use them with RCU, but it does use them under spin locks,
so an rwlock is not kosher.
This algorithm is super-dumb, but the idr API has changed upstream,
and this is not performance-critical, so it's not worth investing
time in a better algorithm at the moment.