projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b8aa99
)
iommu/vt-d: Do not use GFP_ATOMIC when not needed
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Thu, 13 Apr 2023 04:06:35 +0000
(12:06 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 13 Apr 2023 10:05:48 +0000
(12:05 +0200)
There is no need to use GFP_ATOMIC here. GFP_KERNEL is already used for
some other memory allocations just a few lines above.
Commit
e3a981d61d15
("iommu/vt-d: Convert allocations to GFP_KERNEL") has
changed the other memory allocation flags.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link:
https://lore.kernel.org/r/e2a8a1019ffc8a86b4b4ed93def3623f60581274.1675542576.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/irq_remapping.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel/irq_remapping.c
b/drivers/iommu/intel/irq_remapping.c
index 6d01fa078c36fcaea0cf5fcde3bca84a061ffd3b..013ccc25ee4f81c1c6c62fbdb3fdcae425d084fc 100644
(file)
--- a/
drivers/iommu/intel/irq_remapping.c
+++ b/
drivers/iommu/intel/irq_remapping.c
@@
-552,7
+552,7
@@
static int intel_setup_irq_remapping(struct intel_iommu *iommu)
goto out_free_table;
}
- bitmap = bitmap_zalloc(INTR_REMAP_TABLE_ENTRIES, GFP_
ATOMIC
);
+ bitmap = bitmap_zalloc(INTR_REMAP_TABLE_ENTRIES, GFP_
KERNEL
);
if (bitmap == NULL) {
pr_err("IR%d: failed to allocate bitmap\n", iommu->seq_id);
goto out_free_pages;