Skip to content

Commit 3dfd824

Browse files
committed
Merge branch 'pci/p2pdma'
- Fix a sleeping issue in a RCU read section (Christophe JAILLET) * pci/p2pdma: PCI/P2PDMA: Fix a sleeping issue in a RCU read section
2 parents 420b8c3 + 1e5c66a commit 3dfd824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/p2pdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ calc_map_type_and_dist(struct pci_dev *provider, struct pci_dev *client,
661661
p2pdma = rcu_dereference(provider->p2pdma);
662662
if (p2pdma)
663663
xa_store(&p2pdma->map_types, map_types_idx(client),
664-
xa_mk_value(map_type), GFP_KERNEL);
664+
xa_mk_value(map_type), GFP_ATOMIC);
665665
rcu_read_unlock();
666666
return map_type;
667667
}

0 commit comments

Comments
 (0)