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)
Wed, May 13, 7:49 PM
Unknown Object (File)
Tue, May 12, 3:19 PM
Unknown Object (File)
Tue, May 12, 1:10 AM
Unknown Object (File)
Tue, May 12, 12:40 AM
Unknown Object (File)
Sat, May 9, 10:41 PM
Unknown Object (File)
Fri, May 8, 7:45 PM
Unknown Object (File)
Wed, May 6, 2:05 AM
Unknown Object (File)
Fri, May 1, 10:55 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