Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144378283
D37204.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37204.diff
View Options
diff --git a/sys/dev/iommu/iommu_gas.c b/sys/dev/iommu/iommu_gas.c
--- a/sys/dev/iommu/iommu_gas.c
+++ b/sys/dev/iommu/iommu_gas.c
@@ -274,7 +274,7 @@
void
iommu_gas_fini_domain(struct iommu_domain *domain)
{
- struct iommu_map_entry *entry, *entry1;
+ struct iommu_map_entry *entry;
IOMMU_DOMAIN_ASSERT_LOCKED(domain);
KASSERT(domain->entries_cnt == 2,
@@ -297,14 +297,6 @@
("end entry flags %p", domain));
iommu_gas_rb_remove(domain, entry);
iommu_gas_free_entry(entry);
-
- RB_FOREACH_SAFE(entry, iommu_gas_entries_tree, &domain->rb_root,
- entry1) {
- KASSERT((entry->flags & IOMMU_MAP_ENTRY_RMRR) != 0,
- ("non-RMRR entry left %p", domain));
- iommu_gas_rb_remove(domain, entry);
- iommu_gas_free_entry(entry);
- }
}
struct iommu_gas_match_args {
@@ -409,9 +401,9 @@
/*
* Address-ordered first-fit search of 'domain' for free space satisfying the
* conditions of 'a'. The space allocated is at least one page big, and is
- * bounded by guard pages to left and right. The allocated space for 'domain'
- * is described by an rb-tree of map entries at domain->rb_root, and
- * domain->start_gap points a map entry less than or adjacent to the first
+ * bounded by guard pages to the left and right. The allocated space for
+ * 'domain' is described by an rb-tree of map entries at domain->rb_root, and
+ * domain->start_gap points to a map entry less than or adjacent to the first
* free-space of size at least 3 pages.
*/
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 3:30 AM (16 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28506786
Default Alt Text
D37204.diff (1 KB)
Attached To
Mode
D37204: iommu_gas: drop fini cleanup loop
Attached
Detach File
Event Timeline
Log In to Comment