mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-19 01:49:47 -05:00
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
This commit is contained in:
@@ -661,7 +661,7 @@ calc_map_type_and_dist(struct pci_dev *provider, struct pci_dev *client,
|
||||
p2pdma = rcu_dereference(provider->p2pdma);
|
||||
if (p2pdma)
|
||||
xa_store(&p2pdma->map_types, map_types_idx(client),
|
||||
xa_mk_value(map_type), GFP_KERNEL);
|
||||
xa_mk_value(map_type), GFP_ATOMIC);
|
||||
rcu_read_unlock();
|
||||
return map_type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user