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
Unknown Object (File)
Sun, Oct 26, 4:09 AM
Unknown Object (File)
Oct 14 2025, 5:29 PM
Unknown Object (File)
Oct 14 2025, 5:29 PM
Unknown Object (File)
Oct 14 2025, 5:29 PM
Unknown Object (File)
Oct 14 2025, 5:12 AM
Unknown Object (File)
Oct 5 2025, 4:25 PM
Unknown Object (File)
Oct 4 2025, 4:12 AM
Unknown Object (File)
Sep 9 2025, 9:53 PM
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