mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08: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:
commit
3dfd824796
@ -661,7 +661,7 @@ done:
|
|||||||
p2pdma = rcu_dereference(provider->p2pdma);
|
p2pdma = rcu_dereference(provider->p2pdma);
|
||||||
if (p2pdma)
|
if (p2pdma)
|
||||||
xa_store(&p2pdma->map_types, map_types_idx(client),
|
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();
|
rcu_read_unlock();
|
||||||
return map_type;
|
return map_type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user