File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,9 @@ struct dmar_pci_notify_info {
69
69
extern struct rw_semaphore dmar_global_lock ;
70
70
extern struct list_head dmar_drhd_units ;
71
71
72
- #define for_each_drhd_unit (drhd ) \
73
- list_for_each_entry_rcu(drhd, &dmar_drhd_units, list)
72
+ #define for_each_drhd_unit (drhd ) \
73
+ list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \
74
+ dmar_rcu_check())
74
75
75
76
#define for_each_active_drhd_unit (drhd ) \
76
77
list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
@@ -81,7 +82,8 @@ extern struct list_head dmar_drhd_units;
81
82
if (i=drhd->iommu, drhd->ignored) {} else
82
83
83
84
#define for_each_iommu (i , drhd ) \
84
- list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
85
+ list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \
86
+ dmar_rcu_check()) \
85
87
if (i=drhd->iommu, 0) {} else
86
88
87
89
static inline bool dmar_rcu_check (void )
You can’t perform that action at this time.
0 commit comments