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)
Thu, Jan 23, 10:08 AM
Unknown Object (File)
Wed, Jan 15, 6:47 AM
Unknown Object (File)
Mon, Jan 13, 8:12 PM
Unknown Object (File)
Mon, Jan 13, 7:46 PM
Unknown Object (File)
Mon, Jan 13, 2:40 PM
Unknown Object (File)
Sun, Jan 12, 11:50 PM
Unknown Object (File)
Fri, Jan 3, 2:12 AM
Unknown Object (File)
Dec 19 2024, 6:16 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