projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4b1054
)
iommu/vt-d: Remove initialization for dynamically heap-allocated rcu_head
author
Tina Zhang
<tina.zhang@intel.com>
Tue, 27 Feb 2024 02:14:38 +0000
(10:14 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Fri, 1 Mar 2024 12:51:19 +0000
(13:51 +0100)
The rcu_head structures allocated dynamically in the heap don't need any
initialization. Therefore, remove the init_rcu_head().
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Link:
https://lore.kernel.org/r/20240219125723.1645703-3-tina.zhang@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/svm.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel/svm.c
b/drivers/iommu/intel/svm.c
index a815362c8e600765cdad41bf998ec9c387439b62..a92a9e2239e2253f023968abbe482781d942ac37 100644
(file)
--- a/
drivers/iommu/intel/svm.c
+++ b/
drivers/iommu/intel/svm.c
@@
-360,7
+360,6
@@
static int intel_svm_bind_mm(struct intel_iommu *iommu, struct device *dev,
sdev->iommu = iommu;
sdev->did = FLPT_DEFAULT_DID;
sdev->sid = PCI_DEVID(info->bus, info->devfn);
- init_rcu_head(&sdev->rcu);
if (info->ats_enabled) {
sdev->qdep = info->ats_qdep;
if (sdev->qdep >= QI_DEV_EIOTLB_MAX_INVS)