Commit e4923174 authored by Haibo Li's avatar Haibo Li Committed by Todd Kjos
Browse files

FROMLIST: cfi: free old cfi shadow asynchronously



Currenly, it uses synchronize_rcu() to wait old rcu reader to go away
in update_shadow.In embedded platform like ARM CA7X,
load_module blocks 40~50ms in update_shadow.
When there are more than one hundred kernel modules,
it blocks several seconds.

To accelerate load_module,change synchronize_rcu to call_rcu.

Change-Id: I08dcb29ef97453b836efd0d64286196600be8cce
Signed-off-by: default avatarHaibo Li <haibo.li@mediatek.com>
Signed-off-by: default avatarLecopzer Chen <lecopzer.chen@mediatek.com>
Link: https://lore.kernel.org/lkml/20220704014046.34596-3-haibo.li@mediatek.com/


Bug: 236922027
Bug: 257362811
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 9b7bf9c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment