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
F107356658: D36597.id110682.diff
Sun, Jan 12, 11:50 PM
Unknown Object (File)
Fri, Jan 3, 2:12 AM
Unknown Object (File)
Thu, Dec 19, 6:16 PM
Unknown Object (File)
Nov 28 2024, 6:02 PM
Unknown Object (File)
Nov 11 2024, 5:45 AM
Unknown Object (File)
Sep 23 2024, 8:26 PM
Unknown Object (File)
Sep 23 2024, 8:16 PM
Unknown Object (File)
Sep 23 2024, 6:37 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

Lint
Lint Skipped
Unit
Tests Skipped