Page MenuHomeFreeBSD

iommu_gas: don't remove and reinsert boundary entry
ClosedPublic

Authored by dougm on Sep 16 2022, 7:27 AM.
Tags
None
Referenced Files
F166514419: D36597.diff
Thu, Aug 13, 9:57 PM
Unknown Object (File)
Fri, Aug 7, 8:38 PM
Unknown Object (File)
Thu, Aug 6, 2:25 PM
Unknown Object (File)
Wed, Aug 5, 6:46 AM
Unknown Object (File)
Jun 10 2026, 12:02 PM
Unknown Object (File)
Jun 9 2026, 8:24 AM
Unknown Object (File)
Jun 9 2026, 6:53 AM
Unknown Object (File)
Jun 7 2026, 11:19 AM
Subscribers

Details

Summary

Avoid removing an item in iommu_gas_free_region only to reinsert it, by avoiding removing an entry that is either first_place or last_place.

This is the only use I find of either first_place or last_place data, so it could be written using prev and next instead. This version saves time in calls to iommu_gas_free_region, while removing those fields would save space. I could go either way.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable