lkml.org 
[lkml]   [2022]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 1/1] iommu/vt-d: Fix possible recursive locking in intel_iommu_init()
Date
> From: Lu Baolu <baolu.lu@linux.intel.com>
> Sent: Tuesday, July 19, 2022 7:53 AM
>
> @@ -88,7 +89,8 @@ extern struct list_head dmar_drhd_units;
> static inline bool dmar_rcu_check(void)
> {
> return rwsem_is_locked(&dmar_global_lock) ||
> - system_state == SYSTEM_BOOTING;
> + system_state == SYSTEM_BOOTING ||
> + (IS_ENABLED(CONFIG_INTEL_IOMMU)
> && !intel_iommu_enabled);
> }

intel_iommu_enabled is 0 if CONFIG_INTEL_IOMMU is not set.

same for other similar checks.


\
 
 \ /
  Last update: 2022-07-21 09:40    [W:0.122 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site