ANDROID: cfi: switch to synchronize_rcu_expedited()
Use synchronize_rcu_expedited() to avoid RCU stalls when updating the shadow while loading modules. Bug: 178005287 Change-Id: I2a1235070bf8eb24fe4eabdc523a96c29adb04a1 Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:

committed by
Alistair Delva

parent
4bc01268f9
commit
56fec23950
@@ -214,7 +214,7 @@ static void update_shadow(struct module *mod, unsigned long base_addr,
|
||||
|
||||
rcu_assign_pointer(cfi_shadow, next);
|
||||
mutex_unlock(&shadow_update_lock);
|
||||
synchronize_rcu();
|
||||
synchronize_rcu_expedited();
|
||||
|
||||
if (prev) {
|
||||
set_memory_rw((unsigned long)prev, SHADOW_PAGES);
|
||||
|
Reference in New Issue
Block a user