mbox series

[0/2] ANDROID: cfi:free old cfi shadow asynchronously

Message ID 20220630094646.91837-1-haibo.li@mediatek.com (mailing list archive)
Headers show
Series ANDROID: cfi:free old cfi shadow asynchronously | expand

Message

Haibo Li June 30, 2022, 9:46 a.m. UTC
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.

*** BLURB HERE ***

Haibo Li (2):
  ANDROID: cfi: enable sanitize for cfi.c
  ANDROID: cfi: free old cfi shadow asynchronously

 kernel/Makefile |  3 ---
 kernel/cfi.c    | 20 +++++++++++++++++---
 2 files changed, 17 insertions(+), 6 deletions(-)