+void iommu_free_pgtbl_pages(struct iommu_domain *domain,It seems OK, but I wonder if there is benifit to using
+ struct list_head *pages)
+{
+ struct page *page, *next;
+
+ if (!domain->concurrent_traversal) {
+ put_pages_list(pages);
+ return;
+ }
+
+ list_for_each_entry_safe(page, next, pages, lru) {
+ list_del(&page->lru);
+ call_rcu(&page->rcu_head, pgtble_page_free_rcu);
+ }
put_pages_list() from the rcu callback